From 7ac86350aa691c110f22be1b78b5b77343894fe3 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 17 Aug 2022 16:02:12 +0200 Subject: [PATCH] build_key-pass.sh: change name of 'ta.key' and 'ca.cert'. --- build_key-pass.sh | 4 ++-- create_key_config.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build_key-pass.sh b/build_key-pass.sh index c117b66..17d56ef 100755 --- a/build_key-pass.sh +++ b/build_key-pass.sh @@ -800,11 +800,11 @@ if $_copy_to_user_home_dir ; then if [[ $? -ne 0 ]] ; then _failed=true fi - cp -a "${_CA_CERT}" "${_target_dir}" >> $log_file 2>&1 + cp -a "${_CA_CERT}" "${_target_dir}/VPN-${ORG_SHORTCUT}-$(basename ${_CA_CERT})" >> $log_file 2>&1 if [[ $? -ne 0 ]] ; then _failed=true fi - cp -a "${_TA_KEY}" "${_target_dir}" >> $log_file 2>&1 + cp -a "${_TA_KEY}" "${_target_dir}/VPN-${ORG_SHORTCUT}-$(basename ${_TA_KEY})" >> $log_file 2>&1 if [[ $? -ne 0 ]] ; then _failed=true fi diff --git a/create_key_config.sh b/create_key_config.sh index c55ebcc..b3cf7ca 100755 --- a/create_key_config.sh +++ b/create_key_config.sh @@ -676,6 +676,9 @@ fi if [[ $? -ne 0 ]] ; then _failed=true fi + +# - For historical reasons +# - cp -a "$_client_conf_file" "${_target_dir}/client-$(basename $_client_conf_file)" >> $log_file 2>&1 if [[ $? -ne 0 ]] ; then _failed=true