Skip to content

Commit

Permalink
added daily alert for outdated OS
Browse files Browse the repository at this point in the history
  • Loading branch information
heartsucker committed Feb 14, 2019
1 parent cf14d40 commit ce49036
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

check_release='/usr/lib/ubuntu-release-upgrader/check-new-release'
send_alarm='/var/ossec/send_encrypted_alarm.sh'

if [ "$(lsb_release -sc)" = 'trusty' ] && [ -x "$check_release" ] && [ -x "$send_alarm" ]; then
"$check_release" -q | "$send_alarm"
fi

0 comments on commit ce49036

Please sign in to comment.