From c63507c6c39751ecb4f7c5a561923b6ebe1c0c42 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Sat, 30 May 2020 20:52:01 -0500 Subject: [PATCH] HOSTNAME --- CHANGELOG.md | 1 + README.md | 6 ++++++ gravity-sync.sh | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79eb3fa..d33f5a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - Improved method to activate development branch updates, as added in 1.7.2. - `./gravity-sync.sh dev` will now toggle dev flag on/off. No `touch` required, although it still works that way under the covers. - Detects absence of ssh client command on host OS (DietPi) +- Detects absence of rsync client command on host OS (DietPi) - Detects absence of ssh-keygen on host OS and will use dropbearkey as an alternative (DietPi) #### 1.7.3 diff --git a/README.md b/README.md index f1012e4..50514c1 100644 --- a/README.md +++ b/README.md @@ -231,6 +231,12 @@ If you are just straight up unable to run the `gravity-sync.sh` file, make sure chmod +x gravity-sync.sh ``` +If you are getting errors about missing SSH or RSYNC when you run your first `compare` or `pull` operation, and you're using an ultra-lightweight distro like DietPi, make sure they are installed on the base operating system. + +```bash +sudo apt-get install rsync +``` + - If your script prompts for a password on the remote system, make sure that your user account is setup not to require passwords in the sudoers file. - If you use a non-standard SSH port to connect to your primary Pi-hole, you can add `SSH_PORT='123'` to the bottom of your `gravity-sync.conf` file. (Subsitute 123 for your non-standard port.) This will overwrite the `SSH_PORT=22` at the top of the script as it is imported later in the execution. - If you'd like to know what version of the script you have running by running `./gravity-sync.sh version` diff --git a/gravity-sync.sh b/gravity-sync.sh index 51248f7..0657766 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -889,7 +889,7 @@ function distro_check { } function detect_ssh { - MESSAGE="Checking for SSH Client on $hostname" + MESSAGE="Checking for SSH Client on $HOSTNAME" echo_stat if hash ssh 2>/dev/null @@ -903,7 +903,7 @@ function detect_ssh { exit_nochange fi - MESSAGE="Checking for RSYNC Client on $hostname" + MESSAGE="Checking for RSYNC Client on $HOSTNAME" echo_stat if hash rsync 2>/dev/null