mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Installation Script
This commit is contained in:
@@ -312,7 +312,7 @@ add_pialert_DNS() {
|
|||||||
install_lighttpd() {
|
install_lighttpd() {
|
||||||
print_header "Lighttpd & PHP"
|
print_header "Lighttpd & PHP"
|
||||||
|
|
||||||
print_msg "apt-utils"
|
print_msg "- Installing apt-utils..."
|
||||||
sudo apt-get install apt-utils -y 2>&1 >> "$LOG"
|
sudo apt-get install apt-utils -y 2>&1 >> "$LOG"
|
||||||
|
|
||||||
print_msg "- Installing lighttpd..."
|
print_msg "- Installing lighttpd..."
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ main() {
|
|||||||
move_files
|
move_files
|
||||||
clean_files
|
clean_files
|
||||||
|
|
||||||
|
check_packages
|
||||||
download_pialert
|
download_pialert
|
||||||
update_config
|
update_config
|
||||||
update_db
|
update_db
|
||||||
@@ -86,6 +87,21 @@ clean_files() {
|
|||||||
rm -r "$PIALERT_HOME/"*.md 2>/dev/null || :
|
rm -r "$PIALERT_HOME/"*.md 2>/dev/null || :
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# Check packages
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
check_packages() {
|
||||||
|
print_msg "- Checking package apt-utils..."
|
||||||
|
sudo apt-get install apt-utils -y 2>&1 >> "$LOG"
|
||||||
|
|
||||||
|
print_msg "- Checking package sqlite3..."
|
||||||
|
sudo apt-get install sqlite3 -y 2>&1 >> "$LOG"
|
||||||
|
|
||||||
|
print_msg "- Checking packages dnsutils & net-tools..."
|
||||||
|
sudo apt-get install dnsutils net-tools -y 2>&1 >> "$LOG"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Download and uncompress Pi.Alert
|
# Download and uncompress Pi.Alert
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user