From c053aa2d016c189b01e0bb05774ce4bf38afecb5 Mon Sep 17 00:00:00 2001 From: pucherot Date: Tue, 26 Jan 2021 10:10:12 +0100 Subject: [PATCH] Update pialert_install.sh --- install/pialert_install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/install/pialert_install.sh b/install/pialert_install.sh index e400f219..038317fb 100644 --- a/install/pialert_install.sh +++ b/install/pialert_install.sh @@ -309,9 +309,10 @@ install_lighttpd() { sudo apt-get install php php-cgi php-fpm php-sqlite3 -y 2>&1 >> "$LOG" print_msg "- Activating PHP..." + ERRNO=0 sudo lighttpd-enable-mod fastcgi-php 2>&1 >>"$LOG" || ERRNO=$? log_no_screen "-- Command error code: $ERRNO" - if [ $ERRNO -eq 1 ] ; then + if [ "$ERRNO" = "1" ] ; then process_error "Error activating PHP" fi @@ -323,13 +324,16 @@ install_lighttpd() { # Install arp-scan # ------------------------------------------------------------------------------ install_arpscan() { - print_header "arp-scan" + print_header "arp-scan & dnsutils" print_msg "- Installing arp-scan..." sudo apt-get install arp-scan -y 2>&1 >> "$LOG" 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" }