From 75f1969bd2eafd4241249b5b76446792261b4b44 Mon Sep 17 00:00:00 2001 From: nate Date: Sat, 2 Apr 2016 18:39:09 -0500 Subject: [PATCH] Set executable permissions of `pihole` and changed installer to invoke sudo for gravity.sh. Note: We invoke gravity.sh with sudo in other places, so ignore the removed comment. --- automated install/basic-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 4c5afd86..c984c640 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -484,6 +484,7 @@ installScripts() { $SUDO cp /etc/.pihole/advanced/Scripts/setupLCD.sh /opt/pihole/setupLCD.sh $SUDO chmod 755 /opt/pihole/{gravity,chronometer,whitelist,blacklist,piholeLogFlush,updateDashboard,uninstall,setupLCD}.sh $SUDO cp /etc/.pihole/pihole /usr/local/bin/pihole + $SUDO chmod 755 /usr/local/bin/pihole $SUDO cp /etc/.pihole/advanced/bash-completion/pihole /etc/bash-completion.d/pihole $SUDO echo " done." } @@ -655,9 +656,8 @@ runGravity() { echo "::: Cleaning up previous install (preserving whitelist/blacklist)" $SUDO rm /etc/pihole/list.* fi - #Don't run as SUDO, this was causing issues echo "::: Running gravity.sh" - /opt/pihole/gravity.sh + $SUDO /opt/pihole/gravity.sh } setUser(){