diff --git a/README.md b/README.md index 1e90041..42782d5 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ sudo chmod +x /usr/bin/synchole.sh 5. Configure the synchole script to your liking. ``` -sudo vim /opt/synchole.sh +sudo vim /usr/bin/synchole.sh ``` The config section is at the top of the script. @@ -44,5 +44,16 @@ Example cronjob: `*/5 * * * * /opt/synchole/synchole.sh -q` (this runs synchole 9. Happy syncholeing! +## Update + +1. To update synchole login via SSH to the `SLAVE` server. + +2. Run the following commands (again) on the `SLAVE` server. +``` +sudo wget https://socialg.it/david/synchole/raw/master/synchole.sh -O /usr/bin/synchole.sh +sudo chmod +x /usr/bin/synchole.sh +``` + + ## Resources - https://discourse.pi-hole.net/t/what-files-does-pi-hole-use/1684 diff --git a/synchole.sh b/synchole.sh index 46fec0d..9c7c852 100755 --- a/synchole.sh +++ b/synchole.sh @@ -205,6 +205,7 @@ for LIST in $LISTS; do log info "Installing $LIST." if ! install_list $LIST; then log error "Something went wrong while installing $LIST" + exit 1 else log success "Successfully installed $LIST" CHANGES=1 @@ -216,8 +217,9 @@ done ## run updateGravity if [ $CHANGES -eq 1 ]; then - if update_gravity; then + if ! update_gravity; then log error "Something went wrong while updating gravity" + exit 1 else log success "Gravity has been successfully updated" fi