mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Fix update script
This commit is contained in:
parent
22c27b08c9
commit
0ec2580f59
@ -106,7 +106,7 @@ case $# in
|
|||||||
push)
|
push)
|
||||||
|
|
||||||
echo -e "${GREEN}Success${NC}: Push requested"
|
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 "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 "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}?"
|
echo -e "Are you sure you want to overwrite the primary node configuration on ${REMOTE_HOST}?"
|
||||||
@ -141,13 +141,14 @@ case $# in
|
|||||||
update)
|
update)
|
||||||
|
|
||||||
echo -e "${GREEN}Success:${NC} Update requested"
|
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
|
select yn in "Update" "Cancel"; do
|
||||||
case $yn in
|
case $yn in
|
||||||
Yes )
|
Update )
|
||||||
git pull
|
git pull
|
||||||
break;;
|
break;;
|
||||||
No )
|
Cancel )
|
||||||
echo "No changes have been made to the system"
|
echo "No changes have been made to the system"
|
||||||
exit;;
|
exit;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user