mirror of https://github.com/tteck/Proxmox.git
				
				
				
			
							parent
							
								
									b0a7fc06eb
								
							
						
					
					
						commit
						0692bad5c6
					
				| 
						 | 
					@ -18,7 +18,6 @@ $STD apt-get -y install \
 | 
				
			||||||
  sudo \
 | 
					  sudo \
 | 
				
			||||||
  mc \
 | 
					  mc \
 | 
				
			||||||
  curl \
 | 
					  curl \
 | 
				
			||||||
  git \
 | 
					 | 
				
			||||||
  apt-utils \
 | 
					  apt-utils \
 | 
				
			||||||
  lighttpd \
 | 
					  lighttpd \
 | 
				
			||||||
  sqlite3 \
 | 
					  sqlite3 \
 | 
				
			||||||
| 
						 | 
					@ -29,6 +28,7 @@ $STD apt-get -y install \
 | 
				
			||||||
  libwww-perl \
 | 
					  libwww-perl \
 | 
				
			||||||
  nmap \
 | 
					  nmap \
 | 
				
			||||||
  zip \
 | 
					  zip \
 | 
				
			||||||
 | 
					  aria2 \
 | 
				
			||||||
  wakeonlan
 | 
					  wakeonlan
 | 
				
			||||||
msg_ok "Installed Dependencies"
 | 
					msg_ok "Installed Dependencies"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -42,7 +42,6 @@ $STD apt-get -y install \
 | 
				
			||||||
$STD lighttpd-enable-mod fastcgi-php
 | 
					$STD lighttpd-enable-mod fastcgi-php
 | 
				
			||||||
service lighttpd force-reload
 | 
					service lighttpd force-reload
 | 
				
			||||||
msg_ok "Installed PHP Dependencies"
 | 
					msg_ok "Installed PHP Dependencies"
 | 
				
			||||||
#arp-scan -l
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Installing Python Dependencies"
 | 
					msg_info "Installing Python Dependencies"
 | 
				
			||||||
$STD apt-get -y install \
 | 
					$STD apt-get -y install \
 | 
				
			||||||
| 
						 | 
					@ -55,8 +54,10 @@ msg_ok "Installed Python Dependencies"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
msg_info "Installing Pi.Alert"
 | 
					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
 | 
					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
 | 
					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/install/index.html /var/www/html/index.html
 | 
				
			||||||
ln -s /opt/pialert/front /var/www/html/pialert
 | 
					ln -s /opt/pialert/front /var/www/html/pialert
 | 
				
			||||||
chmod go+x /opt/pialert /opt/pialert/back/shoutrrr/x86/shoutrrr
 | 
					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"
 | 
					    ln -s "$src_dir/$file" "$dest_dir/$file"
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
sed -i 's#PIALERT_PATH\s*=\s*'\''/home/pi/pialert'\''#PIALERT_PATH           = '\''/opt/pialert'\''#' /opt/pialert/config/pialert.conf
 | 
					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
 | 
					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
 | 
					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
 | 
					chmod +x /usr/bin/update
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue