diff --git a/install/pialert_uninstall.sh b/install/pialert_uninstall.sh index bc514139..104b12e6 100644 --- a/install/pialert_uninstall.sh +++ b/install/pialert_uninstall.sh @@ -40,13 +40,20 @@ main() { msgbox "" "The uninstallation will start now" # Uninstall prrocess + print_header "Removing files" # sudo rm -r "$PIALERT_HOME" # sudo rm "$LIGHTTPD_CONF_DIR/pialert" # sudo rm "$LIGHTTPD_CONF_DIR/conf-available/pialert_front.conf" # sudo rm "$LIGHTTPD_CONF_DIR/conf-enabled/pialert_front.conf" # sudo rm -r /var/cache/lighttpd/compress/pialert + # Removing + print_header "Removing Pi.Alert DNS name" +# sudo sed -i '/pi.alert/d' /etc/pihole/custom.list 2>&1 >> "$LOG" +# sudo pihole restartdns 2>&1 >> "$LOG" + # Uninstall crontab jobs + print_header "Removing crontab jobs" # crontab -l 2>/dev/null | sed '/pialert.py/d' | sed ':a;N;$!ba;s/#-------------------------------------------------------------------------------\n# Pi.Alert\n# Open Source Network Guard \/ WIFI & LAN intrusion detector \n#\n# pialert.cron - Back module. Crontab jobs\n#-------------------------------------------------------------------------------\n# Puche 2021 pi.alert.application@gmail.com GNU GPLv3\n#-------------------------------------------------------------------------------//g' | crontab - # final message @@ -54,7 +61,7 @@ main() { print_msg "Note1: If you installed Pi-hole during the Pi.Alert installation process" print_msg " Pi-hole will still be available after uninstalling Pi.Alert" print_msg "" - print_msg "Note2: lighttpd, PHP, arp-scan & Python have not been uninstalled. + print_msg "Note2: lighttpd, PHP, arp-scan & Python have not been uninstalled." print_msg " They may be required by other software" print_msg " You can uninstall them manually with command 'apt-get remove XX'" }