mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Bug Fix - Cleanup Files
This commit is contained in:
parent
f899aaad44
commit
29ae57465b
1 changed files with 12 additions and 2 deletions
12
gravity.sh
12
gravity.sh
|
@ -199,6 +199,16 @@ function gravity_hostFormat() {
|
||||||
# Copy the file over as /etc/pihole/gravity.list so dnsmasq can use it
|
# Copy the file over as /etc/pihole/gravity.list so dnsmasq can use it
|
||||||
cp $piholeDir/$accretionDisc $adList
|
cp $piholeDir/$accretionDisc $adList
|
||||||
}
|
}
|
||||||
|
function gravity_blackbody() {
|
||||||
|
for file in $piholeDir/*.$justDomainsExtension
|
||||||
|
do
|
||||||
|
if [[ " ${activeDomains[@]} " =~ " ${file} " ]]; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
rm -f $file
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
function gravity_advanced() {
|
function gravity_advanced() {
|
||||||
|
|
||||||
# Remove comments and print only the domain name
|
# Remove comments and print only the domain name
|
||||||
|
@ -221,4 +231,4 @@ gravity_Schwarzchild
|
||||||
gravity_pulsar
|
gravity_pulsar
|
||||||
gravity_hostFormat
|
gravity_hostFormat
|
||||||
gravity_advanced
|
gravity_advanced
|
||||||
|
gravity_blackbody
|
||||||
|
|
Loading…
Reference in a new issue