From 044949dc88cac3ddb92ad5e71075a4040ef16e5d Mon Sep 17 00:00:00 2001 From: pucherot Date: Sun, 11 Apr 2021 12:30:27 +0200 Subject: [PATCH] Update pialert_uninstall.sh --- install/pialert_uninstall.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/install/pialert_uninstall.sh b/install/pialert_uninstall.sh index b15a88c2..69c3f19f 100644 --- a/install/pialert_uninstall.sh +++ b/install/pialert_uninstall.sh @@ -41,17 +41,17 @@ main() { # 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 + sudo rm -r "$PIALERT_HOME" 2>&1 >> "$LOG" + sudo rm "$WEBROOT/pialert" 2>&1 >> "$LOG" + sudo rm "$LIGHTTPD_CONF_DIR/conf-available/pialert_front.conf" 2>&1 >> "$LOG" + sudo rm "$LIGHTTPD_CONF_DIR/conf-enabled/pialert_front.conf" 2>&1 >> "$LOG" + sudo rm -r /var/cache/lighttpd/compress/pialert 2>&1 >> "$LOG" # Removing print_header "Removing Pi.Alert DNS name" if [ -f /etc/pihole/custom.list ] ; then - sudo sed -i '/pi.alert/d' /etc/pihole/custom.list 2>&1 >> "$LOG" - sudo pihole restartdns 2>&1 >> "$LOG" + sudo sed -i '/pi.alert/d' /etc/pihole/custom.list 2>&1 >> "$LOG" + sudo pihole restartdns 2>&1 >> "$LOG" fi # Uninstall crontab jobs