diff --git a/ADVANCED.md b/ADVANCED.md index 459f8e0..c6bf7cb 100644 --- a/ADVANCED.md +++ b/ADVANCED.md @@ -18,7 +18,7 @@ Download the latest release from [GitHub](https://github.com/vmstan/gravity-sync ```bash cd ~ -wget https://github.com/vmstan/gravity-sync/archive/v2.2.1.zip +wget https://github.com/vmstan/gravity-sync/archive/v2.2.2.zip unzip v2.2.1.zip -d gravity-sync cd gravity-sync ``` diff --git a/CHANGELOG.md b/CHANGELOG.md index 64cbe99..d595441 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ 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.2 + +- Corrects another logical problem that prevented `custom.list` from being backed up and replicated, if it didn't already exist on the local Pi-hole. + #### 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. diff --git a/VERSION b/VERSION index fae692e..7e541ae 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.1 \ No newline at end of file +2.2.2 \ No newline at end of file diff --git a/gravity-sync.sh b/gravity-sync.sh index 43505d7..946196e 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -1997,15 +1997,12 @@ function backup_remote_gravity { function backup_remote_custom { if [ "$SKIP_CUSTOM" != '1' ] then - if [ -f ${PIHOLE_DIR}/${CUSTOM_DNS} ] - then MESSAGE="Performing Backup of Remote ${CUSTOM_DNS}" echo_stat CMD_TIMEOUT='15' CMD_REQUESTED="sudo cp ${PIHOLE_DIR}/${CUSTOM_DNS} ${PIHOLE_DIR}/${CUSTOM_DNS}.backup" create_sshcmd - fi fi }