diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2018-04-17 07:05:18 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2018-04-17 07:05:18 +0200 |
commit | 551c486e3f7c5194f2b0905ba055c4b610ae5e74 (patch) | |
tree | f72addedab7828133ae946f53291e7da8ceb2128 /lib | |
parent | b2e15909533fccca8d344f4f2678564f5398ad8a (diff) | |
download | acmeman-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.pm | 7 | ||||
-rw-r--r-- | lib/App/Acmeman/Source/Apache.pm | 2 |
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); } |