From b549f7d891da160d3733579f79209f781d639a89 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Sat, 30 May 2020 23:02:21 -0500 Subject: [PATCH] sudo --- gravity-sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"