From 0ec2580f596c44afc59fd463bbca133fcf20c5d3 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Thu, 21 May 2020 20:48:41 -0500 Subject: [PATCH] Fix update script --- gravity-sync.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index 767e2ec..bb51cf3 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -106,7 +106,7 @@ case $# in push) echo -e "${GREEN}Success${NC}: Push requested" - echo -e "${PURPLE}WARNING: DATA LOSS IS POSSIBLE${NC}" + echo -e "${YELLOW}WARNING: DATA LOSS IS POSSIBLE${NC}" echo -e "This will send the running ${GRAVITY_FI} from this server to your primary Pihole" echo -e "No backup copies are made on the primary Pihole before or after executing this command!" echo -e "Are you sure you want to overwrite the primary node configuration on ${REMOTE_HOST}?" @@ -141,13 +141,14 @@ case $# in update) echo -e "${GREEN}Success:${NC} Update requested" - echo -e "This will function only if you installed with Git" + echo -e "${YELLOW}UPDATE SCRIPT REQUIRES ORIGINAL INSTALL VIA GIT${NC}" + echo -e "Are you sure you want to update?" select yn in "Update" "Cancel"; do case $yn in - Yes ) + Update ) git pull - break;; - No ) + break;; + Cancel ) echo "No changes have been made to the system" exit;; esac