aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2018-04-17 07:05:18 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2018-04-17 07:05:18 +0200
commit551c486e3f7c5194f2b0905ba055c4b610ae5e74 (patch)
treef72addedab7828133ae946f53291e7da8ceb2128 /lib
parentb2e15909533fccca8d344f4f2678564f5398ad8a (diff)
downloadacmeman-551c486e3f7c5194f2b0905ba055c4b610ae5e74.tar.gz
acmeman-551c486e3f7c5194f2b0905ba055c4b610ae5e74.tar.bz2
New statement domain.*.postrenew; core.restart renamed to core.postrenew
Diffstat (limited to 'lib')
-rw-r--r--lib/App/Acmeman/Domain.pm7
-rw-r--r--lib/App/Acmeman/Source/Apache.pm2
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/App/Acmeman/Domain.pm b/lib/App/Acmeman/Domain.pm
index 203e63c..46c3f1d 100644
--- a/lib/App/Acmeman/Domain.pm
+++ b/lib/App/Acmeman/Domain.pm
@@ -65,6 +65,8 @@ sub new {
$v =~ s{\$}{\\\$};
$self->{_argument} = qr($v);
+ $self->{_postrenew} = delete $args{'postrenew'};
+
croak "unrecognized arguments" if keys %args;
return $self;
}
@@ -137,5 +139,10 @@ sub certificate_file {
return $self->file(CERT_FILE);
}
+sub postrenew {
+ my $self = shift;
+ return $self->{_postrenew}
+}
+
1;
diff --git a/lib/App/Acmeman/Source/Apache.pm b/lib/App/Acmeman/Source/Apache.pm
index 047f9f9..1e75044 100644
--- a/lib/App/Acmeman/Source/Apache.pm
+++ b/lib/App/Acmeman/Source/Apache.pm
@@ -25,7 +25,7 @@ sub debug {
sub configure {
my ($self, $config) = @_;
- $config->set(qw(core restart), $self->restart_command);
+ $config->set(qw(core postrenew), $self->restart_command);
$self->{_cfg} = $config;
return $self->examine_http_config($self->config_file);
}

Return to:

Send suggestions and report system problems to the System administrator.