mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
Installation Script
This commit is contained in:
@@ -312,7 +312,7 @@ add_pialert_DNS() {
|
||||
install_lighttpd() {
|
||||
print_header "Lighttpd & PHP"
|
||||
|
||||
print_msg "apt-utils"
|
||||
print_msg "- Installing apt-utils..."
|
||||
sudo apt-get install apt-utils -y 2>&1 >> "$LOG"
|
||||
|
||||
print_msg "- Installing lighttpd..."
|
||||
|
||||
@@ -35,6 +35,7 @@ main() {
|
||||
move_files
|
||||
clean_files
|
||||
|
||||
check_packages
|
||||
download_pialert
|
||||
update_config
|
||||
update_db
|
||||
@@ -86,6 +87,21 @@ clean_files() {
|
||||
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
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user