Check for sudo ability

This commit is contained in:
Michael Stanclift 2020-06-03 18:12:07 -05:00
parent 64afbd4e8d
commit db546425ff
2 changed files with 6 additions and 2 deletions

View File

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

View File

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