From 30b33c860de1512da97b447e92cf0b6c4f8cfb26 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Thu, 21 May 2020 18:05:44 -0500 Subject: [PATCH] v1.1.3 --- README.md | 15 ++++++++------- gravity-sync.sh | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d7f70a4..6e8a52f 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,8 @@ Example: ``` cd ~ wget https://github.com/vmstan/gravity-sync/archive/v1.1.2.zip -unzip v1.1.2.zip -mv ~/gravity-sync-1.1.2 ~/gravity-sync +unzip v1.1.3.zip +mv ~/gravity-sync-1.1.3 ~/gravity-sync cd gravity-sync ``` @@ -52,22 +52,23 @@ Please note the script **must** be run from a folder in your user home directory ## Configuration -After you clone the base configuration, you will need to create a configuration file called `gravity-sync.conf` in the same folder as the script. +After you clone the base configuration, you will need to create a configuration file called `gravity-sync.conf` in the same folder as the script. There will be a file called gravity-sync.conf.example that you can use as the basis for your file. Make a copy to remove the .example ``` +cp gravity-sync.conf.example gravity-sync.conf vim gravity-sync.conf ``` -If you don't like VIM, use NANO or your text editor of choice. +If you don't have VIM use VI, if you don't like those use NANO, or if you don't like any of those subsitute for your text editor of choice. -Paste the following into your file, making sure to change the IP (or DNS name) and user account to authenticate to the master Pi. +Make sure you've set the REMOTE_HOST and REMOTE_USER variables with IP (or DNS name) and user account to authenticate to the master Pi. ``` -REMOTE_HOST='192.168.7.5' +REMOTE_HOST='192.168.1.10' REMOTE_USER='pi' ``` -Now test the script. I suggest making a subtle change to a whitelist/blacklist on your primary Pihole, such as a description field, and then seeing if the change propagates to your secondary. +Save. Now test the script. I suggest making a subtle change to a whitelist/blacklist on your primary Pihole, such as a description field, and then seeing if the change propagates to your secondary. ``` ./gravity-sync.sh pull diff --git a/gravity-sync.sh b/gravity-sync.sh index 0c45697..d8ca272 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -1,7 +1,7 @@ #!/bin/bash # Gravity Sync by vmstan -VERSION='1.1.2' +VERSION='1.1.3' # Must execute from a location in the home folder of the user who own's it (ex: /home/pi/gravity-sync) # Configure certificate based SSH authentication between the Pihole HA nodes - it does not use passwords