mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Begin function breakout
This commit is contained in:
parent
69b77606a5
commit
bca3d2a7c8
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Gravity Sync by vmstan
|
# Gravity Sync by vmstan
|
||||||
VERSION='1.1.6'
|
VERSION='1.1.7'
|
||||||
|
|
||||||
# Must execute from a location in the home folder of the user who own's it (ex: /home/pi/gravity-sync)
|
# Must execute from a location in the home folder of the user who own's it (ex: /home/pi/gravity-sync)
|
||||||
# Configure certificate based SSH authentication between the Pihole HA nodes - it does not use passwords
|
# Configure certificate based SSH authentication between the Pihole HA nodes - it does not use passwords
|
||||||
@ -43,6 +43,17 @@ else
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
##############################################
|
||||||
|
|
||||||
|
# FUNCTIONS
|
||||||
|
|
||||||
|
function update_gs {
|
||||||
|
git reset --hard
|
||||||
|
git pull
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
##############################################
|
##############################################
|
||||||
|
|
||||||
# print title
|
# print title
|
||||||
@ -143,10 +154,7 @@ case $# in
|
|||||||
|
|
||||||
update)
|
update)
|
||||||
echo -e "${GREEN}Success:${NC} Update Requested"
|
echo -e "${GREEN}Success:${NC} Update Requested"
|
||||||
# echo -e "${PURPLE}Info:${NC} Gravity Sync ${VERSION}"
|
update_gs
|
||||||
# echo -e "${YELLOW}UPDATING REQUIRES ORIGINAL INSTALL VIA GIT${NC}"
|
|
||||||
git reset --hard
|
|
||||||
git pull
|
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user