Update pialert_install.sh

change download-URL
chmod +x speedtest-cli
install nmap
This commit is contained in:
leiweibau
2022-08-02 21:26:05 +02:00
committed by GitHub
parent 42129f558b
commit f626dc48ea

View File

@@ -342,7 +342,7 @@ install_lighttpd() {
# Install arp-scan & dnsutils # Install arp-scan & dnsutils
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
install_arpscan() { install_arpscan() {
print_header "arp-scan & dnsutils" print_header "arp-scan, dnsutils and nmap"
print_msg "- Installing arp-scan..." print_msg "- Installing arp-scan..."
sudo apt-get install arp-scan -y 2>&1 >> "$LOG" sudo apt-get install arp-scan -y 2>&1 >> "$LOG"
@@ -352,6 +352,9 @@ install_arpscan() {
print_msg "- Installing dnsutils & net-tools..." print_msg "- Installing dnsutils & net-tools..."
sudo apt-get install dnsutils net-tools -y 2>&1 >> "$LOG" 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 fi
print_msg "- Downloading installation tar file..." 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 "" echo ""
print_msg "- Uncompressing tar file" print_msg "- Uncompressing tar file"
@@ -525,6 +528,10 @@ test_pialert() {
print_msg "*** PLEASE WAIT A COUPLE OF MINUTES..." 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" 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 if $FIRST_SCAN_KNOWN ; then
echo "" echo ""
print_msg "- Set devices as Known devices..." print_msg "- Set devices as Known devices..."