create_key_config.sh: some minor changes.

This commit is contained in:
Christoph 2022-04-15 21:39:12 +02:00
parent ba9b9aac95
commit 873636999c

View File

@ -652,7 +652,7 @@ else
fi fi
_failed=false _failed=false
echononl " Copy key material into dir '${_target_dir}/${_CLIENT_CN}'.." echononl " Copy key material into dir '${_target_dir}'.."
if [[ -d "${_target_dir}" ]]; then if [[ -d "${_target_dir}" ]]; then
mv "${_target_dir}" "${_target_dir}.$_date" > $log_file 2>&1 mv "${_target_dir}" "${_target_dir}.$_date" > $log_file 2>&1
if [[ $? -ne 0 ]] ; then if [[ $? -ne 0 ]] ; then