diff --git a/installers/uninstall.sh b/installers/uninstall.sh index bc2aa4a8..77afda6c 100755 --- a/installers/uninstall.sh +++ b/installers/uninstall.sh @@ -20,6 +20,7 @@ readonly raspap_user="www-data" readonly raspap_sudoers="/etc/sudoers.d/090_raspap" readonly raspap_dnsmasq="/etc/dnsmasq.d/090_wlan0.conf" readonly raspap_sysctl="/etc/sysctl.d/90_raspap.conf" +readonly raspap_adblock="/etc/dnsmasq.d/090_adblock.conf" readonly raspap_network="/etc/systemd/network/" readonly rulesv4="/etc/iptables/rules.v4" webroot_dir="/var/www/html" @@ -175,6 +176,10 @@ function _restore_networking() { sudo rm "$raspap_dnsmasq" || _install_error "Unable to remove $raspap_dnsmasq" echo "Removing raspap bridge configurations" sudo rm "$raspap_network"/raspap* || _install_error "Unable to remove bridge config" + if [ -f $raspap_adblock ]; then + echo "Removing raspap adblock configuration" + sudo rm "$raspap_adblock" || _install_error "Unable to remove adblock config" + fi } # Removes installed packages