[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[K12OSN] yum.cron question



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]