From f626dc48ea9861bd8f9b42a29e5b8d499e6913b0 Mon Sep 17 00:00:00 2001 From: leiweibau <105860611+leiweibau@users.noreply.github.com> Date: Tue, 2 Aug 2022 21:26:05 +0200 Subject: [PATCH] Update pialert_install.sh change download-URL chmod +x speedtest-cli install nmap --- install/pialert_install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/install/pialert_install.sh b/install/pialert_install.sh index 72094072..9e401712 100644 --- a/install/pialert_install.sh +++ b/install/pialert_install.sh @@ -342,7 +342,7 @@ install_lighttpd() { # Install arp-scan & dnsutils # ------------------------------------------------------------------------------ install_arpscan() { - print_header "arp-scan & dnsutils" + print_header "arp-scan, dnsutils and nmap" print_msg "- Installing arp-scan..." sudo apt-get install arp-scan -y 2>&1 >> "$LOG" @@ -352,6 +352,9 @@ install_arpscan() { print_msg "- Installing dnsutils & net-tools..." sudo apt-get install dnsutils net-tools -y 2>&1 >> "$LOG" + + print_msg "- Installing nmap and zip..." + sudo apt-get install nmap zip -y 2>&1 >> "$LOG" } @@ -454,7 +457,7 @@ download_pialert() { fi print_msg "- Downloading installation tar file..." - curl -Lo "$INSTALL_DIR/pialert_latest.tar" https://github.com/leiweibau/Pi.Alert/raw/setup_test/tar/pialert_latest.tar + curl -Lo "$INSTALL_DIR/pialert_latest.tar" https://github.com/leiweibau/Pi.Alert/raw/main/tar/pialert_latest.tar echo "" print_msg "- Uncompressing tar file" @@ -525,6 +528,10 @@ test_pialert() { print_msg "*** PLEASE WAIT A COUPLE OF MINUTES..." stdbuf -i0 -o0 -e0 $PYTHON_BIN $PIALERT_HOME/back/pialert.py 1 2>&1 | tee -ai "$LOG" + echo "" + print_msg "- Enable optional Speedtest..." + chmod +x $PIALERT_HOME/back/speedtest-cli + if $FIRST_SCAN_KNOWN ; then echo "" print_msg "- Set devices as Known devices..."