Commit 84eb77fd authored by Leigh Stoller's avatar Leigh Stoller

Add default_md to CA_CRL section; appears to be required in new

version of openssl.
parent ec20606d
#
# Note that all actions *MUST* be idempotent; if this script is run
# again, it should always do the right thing, not break if something
# was already done. See boss-install for lots of example of how to use
# libinstall to help with this.
#
use strict;
use libinstall;
my $NEWSYSLOG_CONF = "/etc/newsyslog.conf";
my $REBOOTLOG = "$LOGDIR/reboot.log";
my $POWERLOG = "$LOGDIR/power.log";
sub InstallUpdate($$)
{
my ($version, $phase) = @_;
#
# If something should run in the pre-install phase.
#
if ($phase eq "pre") {
Phase "newsyslog", "Updating $NEWSYSLOG_CONF", sub {
DoneIfEdited($NEWSYSLOG_CONF);
BackUpFileFatal($NEWSYSLOG_CONF);
AppendToFileFatal($NEWSYSLOG_CONF, "$REBOOTLOG 640 14 300 * Z");
};
}
#
# If something should run in the post-install phase.
#
if ($phase eq "post") {
#
# Rename the older power log to reboot log.
#
Phase "newsyslog", "Renaming power log", sub {
DoneIfExists($REBOOTLOG);
DoneIfDoesntExist($POWERLOG);
ExecQuietFatal("/bin/mv $POWERLOG $REBOOTLOG");
};
}
return 0;
}
1;
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