From 35a7b3a8a55e50dcdc69f682bb72071340a122ae Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 10 Dec 2023 11:40:39 +0100 Subject: [PATCH] sync_from_old_server.sh: exclude also file '000-additional-ssl-settings.conf'from syncing. --- sync_from_old_server.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sync_from_old_server.sh b/sync_from_old_server.sh index e819ff9..e98c3fb 100755 --- a/sync_from_old_server.sh +++ b/sync_from_old_server.sh @@ -47,7 +47,13 @@ sync_web_dirs="" # - Sync Apache virtual host configurations # - -# - Note: +# - Note - following files are excluded: +# - +# - 000-default.conf +# - 000-dehydrated.conf +# - 000-logformat.conf +# - 000-deflate.conf +# - 000-additional-ssl-settings.conf # - sync_vhost_dirs="" @@ -853,6 +859,7 @@ if $_got_vhost_dirs ; then --exclude 000-dehydrated.conf \ --exclude 000-logformat.conf \ --exclude 000-deflate.conf \ + --exclude 000-additional-ssl-settings.conf \ $old_server_ip:$sync_dir $(dirname $sync_dir)/ >> $log_file 2> $tmp_err_msg if [[ $? -eq 0 ]];then echo_ok @@ -884,6 +891,7 @@ if $_got_vhost_dirs ; then [[ "$(basename $_file)" = "000-dehydrated.conf" ]] && continue [[ "$(basename $_file)" = "000-logformat.conf" ]] && continue [[ "$(basename $_file)" = "000-deflate.conf" ]] && continue + [[ "$(basename $_file)" = "000-additional-ssl-settings.conf" ]] && continue if [[ -f "$_file" ]]; then