From 9415d2e8d3128c11a337ce3540ae1ce6e0c0dc46 Mon Sep 17 00:00:00 2001 From: pucherot Date: Fri, 23 Apr 2021 19:35:51 +0200 Subject: [PATCH] Update pialert_install.sh --- install/pialert_install.sh | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/install/pialert_install.sh b/install/pialert_install.sh index 2261ce5f..71151afa 100644 --- a/install/pialert_install.sh +++ b/install/pialert_install.sh @@ -312,6 +312,9 @@ add_pialert_DNS() { install_lighttpd() { print_header "Lighttpd & PHP" + print_msg "apt-utils" + sudo apt-get install apt-utils -y 2>&1 >> "$LOG" + print_msg "- Installing lighttpd..." sudo apt-get install lighttpd -y 2>&1 >> "$LOG" @@ -327,7 +330,11 @@ install_lighttpd() { fi print_msg "- Restarting lighttpd..." - sudo /etc/init.d/lighttpd restart 2>&1 >> "$LOG" + sudo sudo service lighttpd restart 2>&1 >> "$LOG" + # sudo /etc/init.d/lighttpd restart 2>&1 >> "$LOG" + + print_msg "- Installing sqlite3..." + sudo apt-get install sqlite3 -y 2>&1 >> "$LOG" } @@ -343,8 +350,8 @@ install_arpscan() { print_msg "- Testing arp-scan..." sudo arp-scan -l | head -n -3 | tail +3 | tee -a "$LOG" - print_msg "- Installing dnsutils..." - sudo apt-get install dnsutils -y 2>&1 >> "$LOG" + print_msg "- Installing dnsutils & net-tools..." + sudo apt-get install dnsutils net-tools -y 2>&1 >> "$LOG" } @@ -574,7 +581,8 @@ publish_pialert() { sudo ln -s ../conf-available/pialert_front.conf "$LIGHTTPD_CONF_DIR/conf-enabled/pialert_front.conf" 2>&1 >> "$LOG" print_msg "- Restarting lighttpd..." - sudo /etc/init.d/lighttpd restart 2>&1 >> "$LOG" + sudo sudo service lighttpd restart 2>&1 >> "$LOG" + # sudo /etc/init.d/lighttpd restart 2>&1 >> "$LOG" } # ------------------------------------------------------------------------------