Clean additional Pi-hole artifacts in prep
This commit is contained in:
@@ -324,6 +324,12 @@ prep_image() {
|
||||
pihole -f >/dev/null 2>&1 && status CLEANED "pihole logs via pihole -f" || status FAIL "pihole -f"
|
||||
clean_logs_dir /var/log/pihole '*'
|
||||
clean_file /etc/pihole/pihole-FTL.db
|
||||
clean_file /etc/pihole/pihole-FTL.db-wal
|
||||
clean_file /etc/pihole/pihole-FTL.db-shm
|
||||
clean_file /etc/pihole/dhcp.leases
|
||||
clean_file /etc/pihole/install.log
|
||||
clean_file /etc/pihole/gravity_old.db
|
||||
truncate_file /var/log/pihole-FTL.log
|
||||
fi
|
||||
|
||||
if [ -x /opt/AdGuardHome/AdGuardHome ]; then
|
||||
@@ -632,6 +638,14 @@ check_image() {
|
||||
status FAIL "DietPi RAMlog store missing"
|
||||
fi
|
||||
|
||||
section "Pi-hole state"
|
||||
check_file_missing /etc/pihole/pihole-FTL.db
|
||||
check_file_missing /etc/pihole/pihole-FTL.db-wal
|
||||
check_file_missing /etc/pihole/pihole-FTL.db-shm
|
||||
check_file_missing /etc/pihole/dhcp.leases
|
||||
check_file_missing /etc/pihole/install.log
|
||||
check_file_missing /etc/pihole/gravity_old.db
|
||||
|
||||
section "Caches"
|
||||
du -sh /var/cache/apt /var/lib/apt/lists /var/cache/debconf 2>/dev/null || true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user