thecamels-zabbix/bin/check-update.sh
Kamil Porembinski 3c937983ef Missing scripts
2016-05-02 09:29:00 +02:00

8 lines
198 B
Bash

#!/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