mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Update pialert_uninstall.sh
This commit is contained in:
@@ -40,13 +40,20 @@ main() {
|
|||||||
msgbox "" "The uninstallation will start now"
|
msgbox "" "The uninstallation will start now"
|
||||||
|
|
||||||
# Uninstall prrocess
|
# Uninstall prrocess
|
||||||
|
print_header "Removing files"
|
||||||
# sudo rm -r "$PIALERT_HOME"
|
# sudo rm -r "$PIALERT_HOME"
|
||||||
# sudo rm "$LIGHTTPD_CONF_DIR/pialert"
|
# sudo rm "$LIGHTTPD_CONF_DIR/pialert"
|
||||||
# sudo rm "$LIGHTTPD_CONF_DIR/conf-available/pialert_front.conf"
|
# sudo rm "$LIGHTTPD_CONF_DIR/conf-available/pialert_front.conf"
|
||||||
# sudo rm "$LIGHTTPD_CONF_DIR/conf-enabled/pialert_front.conf"
|
# sudo rm "$LIGHTTPD_CONF_DIR/conf-enabled/pialert_front.conf"
|
||||||
# sudo rm -r /var/cache/lighttpd/compress/pialert
|
# 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
|
# 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 -
|
# 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
|
# final message
|
||||||
@@ -54,7 +61,7 @@ main() {
|
|||||||
print_msg "Note1: If you installed Pi-hole during the Pi.Alert installation process"
|
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 " Pi-hole will still be available after uninstalling Pi.Alert"
|
||||||
print_msg ""
|
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 " They may be required by other software"
|
||||||
print_msg " You can uninstall them manually with command 'apt-get remove XX'"
|
print_msg " You can uninstall them manually with command 'apt-get remove XX'"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user