Created
March 23, 2022 06:15
-
-
Save Kelfitas/bca4812dca7e1c4b7ace7cf2f42842dc to your computer and use it in GitHub Desktop.
Taken from here: https://features.cpanel.net/topic/out-of-date-software-notifications-added-to-icontact
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
N=`uname -n` | |
yum check-update > /tmp/checkupdate.log | |
if [[ $? == 100 ]]; then | |
mail -s "New YUM updates available: $N" -r [email protected] [email protected] < /tmp/checkupdate.log | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment