From 0692bad5c6c0b0adaa5b18dafa1c0b8d7dcaed0f Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 22 Sep 2023 08:46:41 -0400 Subject: [PATCH] Update pialert-install.sh tweaks for new release --- install/pialert-install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install/pialert-install.sh b/install/pialert-install.sh index 3c3ba4ad..789710c0 100644 --- a/install/pialert-install.sh +++ b/install/pialert-install.sh @@ -18,7 +18,6 @@ $STD apt-get -y install \ sudo \ mc \ curl \ - git \ apt-utils \ lighttpd \ sqlite3 \ @@ -29,6 +28,7 @@ $STD apt-get -y install \ libwww-perl \ nmap \ zip \ + aria2 \ wakeonlan msg_ok "Installed Dependencies" @@ -42,7 +42,6 @@ $STD apt-get -y install \ $STD lighttpd-enable-mod fastcgi-php service lighttpd force-reload msg_ok "Installed PHP Dependencies" -#arp-scan -l msg_info "Installing Python Dependencies" $STD apt-get -y install \ @@ -55,8 +54,10 @@ msg_ok "Installed Python Dependencies" msg_info "Installing Pi.Alert" curl -sL https://github.com/leiweibau/Pi.Alert/raw/main/tar/pialert_latest.tar | tar xvf - -C /opt >/dev/null 2>&1 -rm -rf /var/www/html/index.html +rm -rf /var/lib/ieee-data /var/www/html/index.html +sed -i -e 's#^sudo cp -n /usr/share/ieee-data/.* /var/lib/ieee-data/#\# &#' -e '/^sudo mkdir -p 2_backup$/s/^/# /' -e '/^sudo cp \*.txt 2_backup$/s/^/# /' -e '/^sudo cp \*.csv 2_backup$/s/^/# /' /opt/pialert/back/update_vendors.sh mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.html.old +ln -s /usr/share/ieee-data/ /var/lib/ ln -s /opt/pialert/install/index.html /var/www/html/index.html ln -s /opt/pialert/front /var/www/html/pialert chmod go+x /opt/pialert /opt/pialert/back/shoutrrr/x86/shoutrrr @@ -69,7 +70,7 @@ for file in pialert.vendors.log pialert.IP.log pialert.1.log pialert.cleanup.log ln -s "$src_dir/$file" "$dest_dir/$file" done sed -i 's#PIALERT_PATH\s*=\s*'\''/home/pi/pialert'\''#PIALERT_PATH = '\''/opt/pialert'\''#' /opt/pialert/config/pialert.conf -sed -i 's/~/\/opt/g' /opt/pialert/install/pialert.cron +sed -i 's/$HOME/\/opt/g' /opt/pialert/install/pialert.cron crontab /opt/pialert/install/pialert.cron echo "bash -c \"\$(wget -qLO - https://github.com/leiweibau/Pi.Alert/raw/main/install/pialert_update.sh)\" -s --lxc" >/usr/bin/update chmod +x /usr/bin/update