diff --git a/gravity-sync.sh b/gravity-sync.sh index efc5217..215925c 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -391,7 +391,7 @@ function restore_gs { then MESSAGE="Restoring ${CUSTOM_DNS} on $HOSTNAME" echo_stat - cp $HOME/${LOCAL_FOLDR}/${BACKUP_FOLD}/${CUSTOM_DNS}.backup ${PIHOLE_DIR}/${CUSTOM_DNS} >/dev/null 2>&1 + sudo cp $HOME/${LOCAL_FOLDR}/${BACKUP_FOLD}/${CUSTOM_DNS}.backup ${PIHOLE_DIR}/${CUSTOM_DNS} >/dev/null 2>&1 error_validate MESSAGE="Validating Ownership on ${CUSTOM_DNS}"