aboutsummaryrefslogtreecommitdiff
path: root/lib/App/Acmeman
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/Acmeman')
-rw-r--r--lib/App/Acmeman/Source/Apache.pm3
-rw-r--r--lib/App/Acmeman/Source/File.pm4
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/App/Acmeman/Source/Apache.pm b/lib/App/Acmeman/Source/Apache.pm
index 042956a..ae9c342 100644
--- a/lib/App/Acmeman/Source/Apache.pm
+++ b/lib/App/Acmeman/Source/Apache.pm
@@ -31,7 +31,8 @@ sub layout { shift->{_layout} }
sub scan {
my ($self) = @_;
debug(2, 'assuming Apache layout "'.$self->layout->name.'"');
- $self->set(qw(core postrenew), $self->layout->restart_command);
+ $self->set(qw(core postrenew), $self->layout->restart_command)
+ unless $self->cfg->is_set(qw(core postrenew));
return $self->examine_http_config($self->layout->config_file);
}
diff --git a/lib/App/Acmeman/Source/File.pm b/lib/App/Acmeman/Source/File.pm
index c622d51..aa678fd 100644
--- a/lib/App/Acmeman/Source/File.pm
+++ b/lib/App/Acmeman/Source/File.pm
@@ -36,7 +36,9 @@ sub scan {
}
foreach my $file (glob $self->{pattern}) {
next if $file =~ m{$self->{ignore}};
- $err |= $self->load($file);
+ unless ($self->load($file)) {
+ ++$err;
+ }
}
return $err == 0;
}

Return to:

Send suggestions and report system problems to the System administrator.