Installation Script

This commit is contained in:
pucherot
2021-04-23 22:05:47 +02:00
parent 9415d2e8d3
commit 36880dadf0
4 changed files with 17 additions and 1 deletions

View File

@@ -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..."

View File

@@ -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
# ------------------------------------------------------------------------------

Binary file not shown.

Binary file not shown.