proper variable for pihole binary

This commit is contained in:
Michael Stanclift 2020-05-26 00:09:45 -05:00
parent 65dd7a42c2
commit 5026317586
2 changed files with 9 additions and 8 deletions

View File

@ -50,9 +50,9 @@ Download the latest release from [GitHub](https://github.com/vmstan/gravity-sync
```
cd ~
wget https://github.com/vmstan/gravity-sync/archive/v1.3.2.zip
unzip v1.3.2.zip
mv ~/gravity-sync-1.3.2 ~/gravity-sync
wget https://github.com/vmstan/gravity-sync/archive/v1.3.3.zip
unzip v1.3.3.zip
mv ~/gravity-sync-1.3.3 ~/gravity-sync
cd gravity-sync
```

View File

@ -25,8 +25,9 @@ CRONJOB_LOG='gravity-sync.cron' # only used if cron is configured to output to t
BACKUP_FOLD='backup' # must exist as subdirectory in LOCAL_FOLD
# PH Folder/File Locations
PIHOLE_DIR='/etc/pihole' # default install directory
PIHOLE_DIR='/etc/pihole' # default PH data directory
GRAVITY_FI='gravity.db' # this should not change
PIHOLE_BIN='/usr/local/bin/pihole' # default PH binary directory
##############################################
### DO NOT CHANGE ANYTHING BELOW THIS LINE ###
@ -136,12 +137,12 @@ function pull_gs {
MESSAGE="Updating FTLDNS Configuration"
echo -en "${STAT} ${MESSAGE}"
/usr/local/bin/pihole restartdns reloadlists >/dev/null 2>&1
${PIHOLE_BIN} restartdns reloadlists >/dev/null 2>&1
error_validate
MESSAGE="Reloading FTLDNS Services"
echo -en "${STAT} ${MESSAGE}"
/usr/local/bin/pihole restartdns >/dev/null 2>&1
${PIHOLE_BIN} restartdns >/dev/null 2>&1
error_validate
logs_export
@ -186,12 +187,12 @@ function push_gs {
MESSAGE="Updating FTLDNS Configuration"
echo -en "${STAT} ${MESSAGE}"
${SSHPASSWORD} ssh ${REMOTE_USER}@${REMOTE_HOST} 'pihole restartdns reloadlists' >/dev/null 2>&1
${SSHPASSWORD} ssh ${REMOTE_USER}@${REMOTE_HOST} '${PIHOLE_BIN} restartdns reloadlists' >/dev/null 2>&1
error_validate
MESSAGE="Reloading FTLDNS Services"
echo -en "${STAT} ${MESSAGE}"
${SSHPASSWORD} ssh ${REMOTE_USER}@${REMOTE_HOST} 'pihole restartdns' >/dev/null 2>&1
${SSHPASSWORD} ssh ${REMOTE_USER}@${REMOTE_HOST} '${PIHOLE_BIN} restartdns' >/dev/null 2>&1
error_validate
logs_export