Commit 3df31cd5 authored by Leigh B Stoller's avatar Leigh B Stoller

Add the prereserve_check cron job.

parent 42905770
#
# Add prereserve_check to /etc/crontab
#
use strict;
use libinstall;
use installvars;
sub InstallUpdate($$)
{
my ($version, $phase) = @_;
#
# If something should run in the pre-install phase.
#
if ($phase eq "pre") {
;
}
#
# If something should run in the post-install phase.
#
if ($phase eq "post") {
Phase "crontab", "Updating $CRONTAB", sub {
DoneIfEdited($CRONTAB);
BackUpFileFatal($CRONTAB);
AppendToFileFatal($CRONTAB,
"*/5\t*\t*\t*\t*\troot\t$TBROOT/sbin/prereserve_check");
};
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
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