david/synchole
david
/
synchole
Archived
1
0
Fork 0

added update instructions and fixed an issue with updating gravity after sync

This commit is contained in:
david 2019-11-09 01:10:58 +01:00
parent c540bc595b
commit 2936412603
2 changed files with 15 additions and 2 deletions

View File

@ -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

View File

@ -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