Cleanup unused scripts
This commit is contained in:
@ -6,9 +6,9 @@
|
||||
# This script will email a logwatch report
|
||||
|
||||
MAILTO="support@comprofix.com"
|
||||
MAILFROM="support@comprofix.com"
|
||||
THISSERVER=$(hostname -f)
|
||||
SMTP="mail.comprofix.com"
|
||||
MAILFROM="$THISSERVER@comprofix.com"
|
||||
SMTP="comprofix-com.mail.protection.outlook.com"
|
||||
|
||||
#Check if removed-but-not-purged
|
||||
test -x /usr/share/logwatch/scripts/logwatch.pl || exit 0
|
||||
@ -17,3 +17,5 @@ test -x /usr/share/logwatch/scripts/logwatch.pl || exit 0
|
||||
/usr/sbin/logwatch > /tmp/logwatch
|
||||
|
||||
sendemail -o tls=no -s $SMTP -t $MAILTO -f "$THISSERVER <$MAILFROM>" -u "[$THISSERVER] Logwatch" -m "$(cat /tmp/logwatch)" -q
|
||||
|
||||
rm /tmp/logwatch
|
Reference in New Issue
Block a user