diff --git a/src/freedombone-app-pihole b/src/freedombone-app-pihole index 02f20dac..ff0aaf12 100755 --- a/src/freedombone-app-pihole +++ b/src/freedombone-app-pihole @@ -116,6 +116,11 @@ function pihole_update { pihole -g systemctl restart dnsmasq + + # avoid having the tripwire report pihole updates + if ! grep -q '!/etc/pihole' /etc/tripwire/twpol.txt; then + sed -i '\|/etc\t\t->.*|a\ !/etc/pihole ;' /etc/tripwire/twpol.txt + fi } function pihole_change_upstream_dns { diff --git a/src/freedombone-base-tripwire b/src/freedombone-base-tripwire index 28c1c2cf..20128c2f 100755 --- a/src/freedombone-base-tripwire +++ b/src/freedombone-base-tripwire @@ -79,6 +79,9 @@ function install_tripwire { if ! grep -q '!/etc/tripwire' /etc/tripwire/twpol.txt; then sed -i '\|/etc\t\t->.*|a\ !/etc/tripwire ;' /etc/tripwire/twpol.txt fi + if ! grep -q '!/etc/pihole' /etc/tripwire/twpol.txt; then + sed -i '\|/etc\t\t->.*|a\ !/etc/pihole ;' /etc/tripwire/twpol.txt + fi # ignore tt-rss cache if ! grep -q '!/etc/share/tt-rss/cache' /etc/tripwire/twpol.txt; then sed -i '\|/etc\t\t->.*|a\ !/etc/share/tt-rss/cache ;' /etc/tripwire/twpol.txt