Commit e74b2b5b authored by Mike Hibler's avatar Mike Hibler

Make running of cvsup contingent on the existence of the runcvsup script.

parent 01f2edbb
......@@ -594,14 +594,17 @@ sub runcvsup($)
return;
}
logmsg("runcvsup: checking for software updates\n");
if (-x "$BINDIR/runcvsup.sh") {
logmsg("runcvsup: checking for software updates\n");
system("$BINDIR/runcvsup.sh");
logmsg("runcvsup: software updates done\n");
system("$BINDIR/runcvsup.sh");
logmsg("runcvsup: software updates done\n");
# cvsup can take awhile so update curtime
$curtime = time();
# cvsup can take awhile so update curtime
$curtime = time();
} else {
logmsg("runcvsup: $BINDIR/runcvsup.sh does not exist, disabled\n");
$iv{cvsup} = 0;
}
qinsert($curtime + $iv{cvsup}, \&runcvsup)
if ($iv{cvsup});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment