mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-03-12 19:58:28 +00:00
Update gravity.sh
remove the left-over commented debug code Signed-off-by: Karol Kania <44871508+karolkania@users.noreply.github.com>
This commit is contained in:
parent
a9650ae287
commit
9c7e02f213
1 changed files with 0 additions and 2 deletions
|
@ -542,7 +542,6 @@ gravity_DownloadBlocklists() {
|
|||
# First, check if the directory is writable
|
||||
directory="$(dirname -- "${saveLocation}")"
|
||||
directory_permissions=$(stat -c %a ${directory})
|
||||
# echo "directory_permissions: ${directory_permissions}"
|
||||
if [ $directory_permissions -lt 700 ]; then
|
||||
echo -e " ${CROSS} Unable to write to ${directory}"
|
||||
echo " Please run pihole -g as root"
|
||||
|
@ -551,7 +550,6 @@ gravity_DownloadBlocklists() {
|
|||
fi
|
||||
# Then, check if the file is writable (if it exists)
|
||||
saveLocation_permissions=$(stat -c %a ${saveLocation})
|
||||
# echo "saveLocation_permissions: ${saveLocation_permissions}"
|
||||
if [ -e "${saveLocation}" ] && [ ${saveLocation_permissions} -lt 600 ]; then
|
||||
echo -e " ${CROSS} Unable to write to ${saveLocation}"
|
||||
echo " Please run pihole -g as root"
|
||||
|
|
Loading…
Add table
Reference in a new issue