summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpiny/lib/Piny/Repo.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm
index 3376ea7..ffdd9fb 100644
--- a/libpiny/lib/Piny/Repo.pm
+++ b/libpiny/lib/Piny/Repo.pm
@@ -417,7 +417,9 @@ sub destroy_apache {
};
};
- system( "/etc/init.d/apache2", "reload" ) and die "Could not reload apache config!";
+ if ( $s->config->piny_apachereload =~ /^(1|true)$/ ) {
+ system( "/etc/init.d/apache2", "reload" ) and die "Could not reload apache config!";
+ };
};
sub destroy_ikiwiki {