mirror of
https://github.com/pi-hole/pi-hole
synced 2025-07-07 23:58:05 +00:00
Ensure domains files are not deleted upon w/blist
This commit is contained in:
parent
a0bd517380
commit
3aa525b0c0
@ -554,6 +554,8 @@ gravity_Cleanup() {
|
|||||||
rm ${piholeDir}/*.tmp 2> /dev/null
|
rm ${piholeDir}/*.tmp 2> /dev/null
|
||||||
rm /tmp/*.phgpb 2> /dev/null
|
rm /tmp/*.phgpb 2> /dev/null
|
||||||
|
|
||||||
|
# Ensure this function only runs alongside gravity_Supernova()
|
||||||
|
if [[ "${skipDownload}" == false ]]; then
|
||||||
# Remove any unused .domains files
|
# Remove any unused .domains files
|
||||||
for file in ${piholeDir}/*.${domainsExtension}; do
|
for file in ${piholeDir}/*.${domainsExtension}; do
|
||||||
# If list is not in active array, then remove it
|
# If list is not in active array, then remove it
|
||||||
@ -562,6 +564,7 @@ gravity_Cleanup() {
|
|||||||
echo -e " ${CROSS} Failed to remove ${file##*/}"
|
echo -e " ${CROSS} Failed to remove ${file##*/}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "${OVER} ${TICK} ${str}"
|
echo -e "${OVER} ${TICK} ${str}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user