From db546425ffc4e1dfe83ba295dbd0bfd62d03583b Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Wed, 3 Jun 2020 18:12:07 -0500 Subject: [PATCH] Check for sudo ability --- README.md | 2 -- gravity-sync.sh | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index defa437..4078711 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,6 @@ What is better than a [Pi-hole](https://github.com/pi-hole/pi-hole) blocking ads That's Gravity Sync. -![Pull execution](https://user-images.githubusercontent.com/3002053/82915078-e870a180-9f35-11ea-8b36-271a02acdeaa.gif) - At it's core, Gravity Sync is maybe a handful of core bash commands, that uses rsync to reach out to a remote host, copy the running `gravity.db` file that contains the Pi-hole blocklist, as well as the `custom.list` file that contains local DNS enteries, and then replaces the copy on the local system. What Gravity Sync provides is an easy way to keep this happening in the background. Ideally you set it and forget it and in the long term, it would be awesome if the Pi-hole team made this entire script unncessary. Gravity Sync will **not** overwrite device specific settings such as device network configuration, admin/API passwords/keys, upstream DNS resolvers, etc. It will also **not** keep DHCP settings or device leases synchronized. diff --git a/gravity-sync.sh b/gravity-sync.sh index 8ca504a..1854334 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -1221,6 +1221,12 @@ function task_configure { TASKTYPE='CONFIGURE' MESSAGE="${MESSAGE}: ${TASKTYPE} Requested" echo_good + + MESSAGE="Escalation Ability Check" + echo_stat + + timeout 2 sudo cat VERSION + error_validate if [ -f $HOME/${LOCAL_FOLDR}/${CONFIG_FILE} ] then