[K12OSN] yum.cron question

Henry Hartley henryhartley at westat.com
Thu Jan 13 16:04:59 UTC 2005


In /etc/cron.daily/yum.cron, I have the following:

#!/bin/sh

if [ -f /var/lock/subsys/yum ]; then
	/usr/bin/yum -R 10 -e 0 -d 0 -y update yum
	/usr/bin/yum -R 120 -e 0 -d 0 -y update
fi

It doesn't seem to be doing anything (i.e. a daily yum update is happening).
My question (which I feel stupid for asking) is, isn't the logic of the "if"
statement backwards?  Shouldn't yum run if there is NO lockfile?  What am I
missing?

-- 
Henry




More information about the K12OSN mailing list