diff options
-rw-r--r-- | lib/App/Acmeman.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/App/Acmeman.pm b/lib/App/Acmeman.pm index de3fb99..5b91bf2 100644 --- a/lib/App/Acmeman.pm +++ b/lib/App/Acmeman.pm @@ -321,12 +321,12 @@ sub renew { foreach my $vhost ($self->selected_domains) { if ($self->force_option || $self->domain_cert_expires($vhost)) { if ($self->register_domain_certificate($vhost)) { - if (my @postrenew = $vhost->postrenew) { + if (my $postrenew = $vhost->postrenew) { local $ENV{ACMEMAN_CERTIFICATE_FILE} = $vhost->certificate_file; local $ENV{ACMEMAN_DOMAIN_NAME} = $vhost; local $ENV{ACMEMAN_ALT_NAMES} = join(' ', $vhost->alt); - foreach my $cmd (@postrenew) { + foreach my $cmd (@$postrenew) { $self->runcmd($cmd, $vhost); } } else { |