This commit is contained in:
Michael Stanclift 2020-08-18 10:09:13 -05:00
parent 572abc07e1
commit 17325791fc
5 changed files with 25 additions and 8 deletions

View File

@ -18,8 +18,8 @@ Download the latest release from [GitHub](https://github.com/vmstan/gravity-sync
```bash
cd ~
wget https://github.com/vmstan/gravity-sync/archive/v2.2.0.zip
unzip v2.2.0.zip -d gravity-sync
wget https://github.com/vmstan/gravity-sync/archive/v2.2.1.zip
unzip v2.2.1.zip -d gravity-sync
cd gravity-sync
```

View File

@ -13,6 +13,12 @@ This release also adds the `./gravity-sync.sh purge` function that will totally
- I found a markdown spellcheck utility for Visual Studio Code, and ran it against all my markdown files. I'm sorry, I don't spell good. 🤷‍♂️
- New Star Trek references.
#### 2.2.1
- Corrects issue with Smart Sync where it would fail if there was no `custom.list` already present on the local Pi-hole.
- Adds Pihole default directories to `gravity-sync.conf.example` file.
- Adds `RIHOLE_BIN` variable to specify different Pi-hole binary location on remote server.
## 2.1
### The Backup Release

View File

@ -1 +1 @@
2.2.0
2.2.1

View File

@ -35,4 +35,14 @@ REMOTE_PASS=''
# PING_AVOID=''
# ROOT_CHECK_AVOID=''
# BACKUP_RETAIN=''
# BACKUP_RETAIN=''
# PIHOLE DEFAULTS ########################
# Have a very good reason to change these!
# PIHOLE_DIR=''
# GRAVITY_FI=''
# CUSTOM_DNS=''
# PIHOLE_BIN=''
# RIHOLE_BIN=''

View File

@ -3,7 +3,7 @@ SCRIPT_START=$SECONDS
# GRAVITY SYNC BY VMSTAN #####################
PROGRAM='Gravity Sync'
VERSION='2.2.0'
VERSION='2.2.1'
# Execute from the home folder of the user who owns it (ex: 'cd ~/gravity-sync')
# For documentation or downloading updates visit https://github.com/vmstan/gravity-sync
@ -40,7 +40,8 @@ BACKUP_RETAIN='7' # replace in gravity-sync.conf to overwrite
PIHOLE_DIR='/etc/pihole' # default Pi-hole data directory
GRAVITY_FI='gravity.db' # default Pi-hole database file
CUSTOM_DNS='custom.list' # default Pi-hole local DNS lookups
PIHOLE_BIN='/usr/local/bin/pihole' # default Pi-hole binary directory
PIHOLE_BIN='/usr/local/bin/pihole' # default Pi-hole binary directory (local)
RIHOLE_BIN='/usr/local/bin/pihole' # default Pi-hole binary directory (remote)
# OS Settings
BASH_PATH='/bin/bash' # default OS bash path
@ -383,13 +384,13 @@ function push_gs_reload {
MESSAGE="Updating Remote FTLDNS Configuration"
echo_stat
CMD_TIMEOUT='15'
CMD_REQUESTED="${PIHOLE_BIN} restartdns reloadlists"
CMD_REQUESTED="${RIHOLE_BIN} restartdns reloadlists"
create_sshcmd
MESSAGE="Reloading Remote FTLDNS Services"
echo_stat
CMD_TIMEOUT='15'
CMD_REQUESTED="${PIHOLE_BIN} restartdns"
CMD_REQUESTED="${RIHOLE_BIN} restartdns"
create_sshcmd
}