mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-24 08:52:18 +02:00
Update pialert-install.sh
tweaks for new release
This commit is contained in:
parent
b0a7fc06eb
commit
0692bad5c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user