build_key-pass.sh: fix error cpying 'ta.key'.

This commit is contained in:
Christoph 2022-09-01 00:17:46 +02:00
parent 3b8b237c32
commit 9af06213a6

View File

@ -814,7 +814,7 @@ if $_copy_to_user_home_dir ; then
if [[ $? -ne 0 ]] ; then
_failed=true
fi
cp -a "${_TA_KEY}" "${_target_dir}/VPN-${KEY_CN/VPN-KEY_CN/VPN-/basename ${_TA_KEY})" >> $log_file 2>&1
cp -a "${_TA_KEY}" "${_target_dir}/VPN-${KEY_CN/VPN-/}-$(basename ${_TA_KEY})" >> $log_file 2>&1
if [[ $? -ne 0 ]] ; then
_failed=true
fi