Add kernel-udpates-check.sh
This commit is contained in:
parent
35e20bd0f7
commit
05ec42e03b
9
kernel-updates-check.sh
Executable file
9
kernel-updates-check.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
UPDATES=$(checkupdates --download)
|
||||||
|
|
||||||
|
if [ ! -z "$(echo -en UPDATES | grep \"linux\")" ]; then
|
||||||
|
echo "Updates available!"
|
||||||
|
UPDATES=$(checkupdates --download)
|
||||||
|
echo -e "Updates are available:\n\n$UPDATES" | $(dirname $0)/mail.sh "Updates are available on $(hostname)"
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user