This commit is contained in:
Michael Stanclift 2020-05-30 20:52:01 -05:00
parent 028fee30dd
commit c63507c6c3
3 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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`

View File

@ -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