thecamels-zabbix/bin/check-update.sh

8 lines
198 B
Bash
Raw Normal View History

2016-05-02 09:29:00 +02:00
#!/bin/bash
day=$(date +%e)
if ((day <= 7)) ; then
result=`/usr/bin/yum -q check-update | grep -v "^$"`
echo -n "$result" > /tmp/yum-update-pending
chown zabbix.zabbix /tmp/yum-update-pending
fi