Commit fe3fde01 authored by Robert Ricci's avatar Robert Ricci

Add quotamail to the crontab on ops.

parent 722426a2
......@@ -65,6 +65,7 @@ my $SYSLOG_CONF = "/etc/syslog.conf";
my $NEWSYSLOG_CONF = "/etc/newsyslog.conf";
my $SUDOERS = "/usr/local/etc/sudoers";
my $SSHD_CONFIG = "/etc/ssh/sshd_config";
my $CRONTAB = "/etc/crontab";
#
# Some directories we care about
......@@ -308,6 +309,18 @@ Phase "syslog", "Setting up syslog", sub {
};
};
Phase "cron", "Adding cron jobs", sub {
Phase "crontab", "Editing $CRONTAB", sub {
DoneIfEdited($CRONTAB);
AppendToFileFatal($CRONTAB,
"0 \t6\t*\t*\t*\troot\t$PREFIX/sbin/quotamain");
};
Phase "cronhup", "HUPing cron", sub {
if (PhaseWasSkipped("crontab")) { PhaseSkip("No new crontab"); }
HUPDaemon("cron");
};
};
Phase "sudoers", "Editing $SUDOERS", sub {
DoneIfEdited($SUDOERS);
AppendToFileFatal($SUDOERS,"%wheel ALL=(ALL) NOPASSWD: ALL");
......
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