diff --git a/VPS/AptUpdateWatcher.sh b/VPS/AptUpdateWatcher.sh index ee0afbe..c338021 100755 --- a/VPS/AptUpdateWatcher.sh +++ b/VPS/AptUpdateWatcher.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/bin/bash # This script updates the apt database if running as root and retrieves the number of upgradable packages. # If the count is high enough or if some important packages can be upgraded, inform the administrator. @@ -30,7 +30,7 @@ if [ -z "$trigger_count" ]; then fi if [ -z "$key_packages" ]; then - key_packages=( "ssh" "ssl" "apache" "kernel" ) + key_packages=( "ssh" "ssl" "apache" "kernel" "linux-image" "syncthing" "wireguard" ) fi @@ -57,5 +57,5 @@ done if [ -n "$output" ]; then output="The Apt Update Watcher has been triggered.\n\n""$output" - echo -e "$output" # Can be replaced by anything or piped into sendmail + echo -e "$output" | mail -aFrom:"$mail_sender" -s "[$(uname -n)] APT update warning $(date +%D-%Hh%M)" "$mail_recipients" fi