From 31fc2bfeb7753ac6137d2e61425d8df6dae22d5c Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 29 Mar 2016 00:25:40 -0500 Subject: [PATCH] Modified gravity.sh to point to new file locations and fixed permission issue --- gravity.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gravity.sh b/gravity.sh index c7b60680..6184ea72 100755 --- a/gravity.sh +++ b/gravity.sh @@ -31,8 +31,8 @@ piholeIPv6file=/etc/pihole/.useIPv6 adListFile=/etc/pihole/adlists.list adListDefault=/etc/pihole/adlists.default -whitelistScript=/usr/local/bin/whitelist.sh -blacklistScript=/usr/local/bin/blacklist.sh +whitelistScript=/opt/pihole/whitelist.sh +blacklistScript=/opt/pihole/blacklist.sh if [[ -f $piholeIPfile ]];then # If the file exists, it means it was exported from the installation script and we should use that value instead of detecting it in this script @@ -129,12 +129,12 @@ function gravity_collapse() { # Temporary hack to allow non-root access to pihole directory # Will update later, needed for existing installs, new installs should # create this directory as non-root - $SUDO chmod 777 $piholeDir find "$piholeDir" -type f -exec $SUDO chmod 666 {} \; & spinner $! - echo "." + echo ":::" else echo -n "::: Creating pihole directory..." mkdir $piholeDir & spinner $! + $SUDO chmod 777 $piholeDir echo " done!" fi }