mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 14:58:08 +00:00
Only run VACUUM on "pihole -g -o"
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
d5feffa117
commit
1f9a7d0b0c
@ -39,7 +39,7 @@ VPNList="/etc/openvpn/ipp.txt"
|
|||||||
piholeGitDir="/etc/.pihole"
|
piholeGitDir="/etc/.pihole"
|
||||||
gravityDBfile="${piholeDir}/gravity.db"
|
gravityDBfile="${piholeDir}/gravity.db"
|
||||||
gravityDBschema="${piholeGitDir}/advanced/Templates/gravity.db.schema"
|
gravityDBschema="${piholeGitDir}/advanced/Templates/gravity.db.schema"
|
||||||
optimize_database=true
|
optimize_database=false
|
||||||
|
|
||||||
domainsExtension="domains"
|
domainsExtension="domains"
|
||||||
matterAndLight="${basename}.0.matterandlight.txt"
|
matterAndLight="${basename}.0.matterandlight.txt"
|
||||||
@ -724,11 +724,12 @@ Options:
|
|||||||
for var in "$@"; do
|
for var in "$@"; do
|
||||||
case "${var}" in
|
case "${var}" in
|
||||||
"-f" | "--force" ) forceDelete=true;;
|
"-f" | "--force" ) forceDelete=true;;
|
||||||
|
"-o" | "--optimize" ) optimize_database=true;;
|
||||||
"-h" | "--help" ) helpFunc;;
|
"-h" | "--help" ) helpFunc;;
|
||||||
"-sd" | "--skip-download" ) skipDownload=true;;
|
"-sd" | "--skip-download" ) skipDownload=true;;
|
||||||
"-b" | "--blacklist-only" ) listType="blacklist"; optimize_database=false;;
|
"-b" | "--blacklist-only" ) listType="blacklist";;
|
||||||
"-w" | "--whitelist-only" ) listType="whitelist"; optimize_database=false;;
|
"-w" | "--whitelist-only" ) listType="whitelist";;
|
||||||
"-wild" | "--wildcard-only" ) listType="wildcard"; optimize_database=false; dnsRestartType="restart";;
|
"-wild" | "--wildcard-only" ) listType="wildcard"; dnsRestartType="restart";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user