server-scripts/kernel-updates-check.sh

9 lines
245 B
Bash
Raw Normal View History

2020-02-02 07:08:03 +01:00
#!/bin/bash
UPDATES=$(checkupdates --download)
if [ ! -z "$(echo -en UPDATES | grep \"linux\")" ]; then
echo "Updates available!"
echo -e "Updates are available:\n\n$UPDATES" | $(dirname $0)/mail.sh "Updates are available on $(hostname)"
2020-02-04 07:37:54 +01:00
fi