mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-06 17:15:38 -08:00
Update pialert_install.sh
change download-URL chmod +x speedtest-cli install nmap
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user