From c7335ba6324f35242f662ba03d2d0bdce98ae298 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Thu, 28 May 2020 10:19:50 -0500 Subject: [PATCH] First pass at crontab addition --- README.md | 3 +-- gravity-sync.sh | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d0619ce..877e285 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ The designation of primary and secondary is purely at your discretion and depend Additionally, some things to consider: -- Gravity Sync has been tested with Ubuntu and Rasbian. It will likely work on other distros but they have not been tested. Please let me know if you have any issues. +- Gravity Sync is regularly tested during development with Ubuntu and Raspberry Pi OS (previously, Raspbian). As Gravity Sync is just an (admittedly) long bash script, it will likely work on other Linux distributions that have the `bash` shell installed. But please file an Issue if you're unable to run it on another platform. - Gravity Sync has not been tested with Docker container deployments of Pi-hole, and is not expected to work there without major modifications. You will need Pi-hole setup with a "traditional" install directly in the base operating system. ## Installation @@ -41,7 +41,6 @@ So a life on the wildside of file sync isn't for you? That's fine. Download the latest release from [GitHub](https://github.com/vmstan/gravity-sync/releases) and extract the files to your *secondary* PH server. - ``` cd ~ wget https://github.com/vmstan/gravity-sync/archive/v1.4.4.zip diff --git a/gravity-sync.sh b/gravity-sync.sh index 7b9b142..99df663 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -595,8 +595,9 @@ function task_automate { import_gs - + (crontab -l 2>/dev/null; echo "*/30 * * * * /bin/bash $HOME/${LOCAL_FOLDR}/gravity-sync.sh pull > ${LOG_PATH}/${CRONJOB_LOG} -with args") | crontab - + exit_withchange } # SCRIPT EXECUTION ###########################