From 986f1092e9eb13bb6f53702196f63ebfd4fbd9dd Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Thu, 1 Oct 2020 15:05:23 -0500 Subject: [PATCH] Move backup to after detection --- gravity-sync.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index 672d302..43505d7 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -209,14 +209,13 @@ function pull_gs_grav { ## Pull Custom function pull_gs_cust { - - backup_local_custom - backup_remote_custom - if [ "$SKIP_CUSTOM" != '1' ] then if [ "$REMOTE_CUSTOM_DNS" == "1" ] - then + then + backup_local_custom + backup_remote_custom + MESSAGE="Pulling ${CUSTOM_DNS} from ${REMOTE_HOST}" echo_stat RSYNC_REPATH="rsync" @@ -339,13 +338,13 @@ function push_gs_grav { ## Push Custom function push_gs_cust { - backup_remote_custom - backup_local_custom - if [ "$SKIP_CUSTOM" != '1' ] then if [ "$REMOTE_CUSTOM_DNS" == "1" ] then + backup_remote_custom + backup_local_custom + MESSAGE="Copying ${CUSTOM_DNS} from ${REMOTE_HOST}" echo_stat RSYNC_REPATH="rsync"