mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 14:58:08 +00:00
Only set ownership/permissions once the file was created
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
d9288b896e
commit
1c4a48258f
@ -441,11 +441,6 @@ gravity_DownloadBlocklists() {
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Chown the file to the pihole user
|
|
||||||
# This is necessary for the FTL to be able to update the file
|
|
||||||
# when gravity is run from the web interface
|
|
||||||
fix_owner_permissions "${saveLocation}"
|
|
||||||
|
|
||||||
echo -e " ${INFO} Target: ${url}"
|
echo -e " ${INFO} Target: ${url}"
|
||||||
local regex check_url
|
local regex check_url
|
||||||
# Check for characters NOT allowed in URLs
|
# Check for characters NOT allowed in URLs
|
||||||
@ -746,7 +741,7 @@ gravity_ParseFileIntoDomains() {
|
|||||||
-e 's/^.*\s+//g' \
|
-e 's/^.*\s+//g' \
|
||||||
-e '/^$/d' "${destination}"
|
-e '/^$/d' "${destination}"
|
||||||
|
|
||||||
chmod 644 "${destination}"
|
fix_owner_permissions "${destination}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Report number of entries in a table
|
# Report number of entries in a table
|
||||||
|
Loading…
Reference in New Issue
Block a user