mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-23 21:30:17 +00:00
Modified gravity.sh to point to new file locations and fixed permission issue
This commit is contained in:
parent
fb5bc16c83
commit
31fc2bfeb7
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue