sync_from_old_server.sh: exclude also file '000-additional-ssl-settings.conf'from syncing.
This commit is contained in:
parent
d87f06c58c
commit
35a7b3a8a5
@ -47,7 +47,13 @@ sync_web_dirs=""
|
|||||||
|
|
||||||
# - Sync Apache virtual host configurations
|
# - 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=""
|
sync_vhost_dirs=""
|
||||||
|
|
||||||
@ -853,6 +859,7 @@ if $_got_vhost_dirs ; then
|
|||||||
--exclude 000-dehydrated.conf \
|
--exclude 000-dehydrated.conf \
|
||||||
--exclude 000-logformat.conf \
|
--exclude 000-logformat.conf \
|
||||||
--exclude 000-deflate.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
|
$old_server_ip:$sync_dir $(dirname $sync_dir)/ >> $log_file 2> $tmp_err_msg
|
||||||
if [[ $? -eq 0 ]];then
|
if [[ $? -eq 0 ]];then
|
||||||
echo_ok
|
echo_ok
|
||||||
@ -884,6 +891,7 @@ if $_got_vhost_dirs ; then
|
|||||||
[[ "$(basename $_file)" = "000-dehydrated.conf" ]] && continue
|
[[ "$(basename $_file)" = "000-dehydrated.conf" ]] && continue
|
||||||
[[ "$(basename $_file)" = "000-logformat.conf" ]] && continue
|
[[ "$(basename $_file)" = "000-logformat.conf" ]] && continue
|
||||||
[[ "$(basename $_file)" = "000-deflate.conf" ]] && continue
|
[[ "$(basename $_file)" = "000-deflate.conf" ]] && continue
|
||||||
|
[[ "$(basename $_file)" = "000-additional-ssl-settings.conf" ]] && continue
|
||||||
|
|
||||||
if [[ -f "$_file" ]]; then
|
if [[ -f "$_file" ]]; then
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user