Missing scripts

This commit is contained in:
Kamil Porembinski
2016-05-02 09:29:00 +02:00
parent 7c43b446ea
commit 3c937983ef
12 changed files with 1643 additions and 1779 deletions

7
bin/check-update.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/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