summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org>2013-04-12 20:18:42 -0700
committerjrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org>2013-04-12 20:18:42 -0700
commit74f36e7294764b136514b2ed67b9345fdc6e1e44 (patch)
treeeff26db064c9dac4b9643625e9eed7c19fb80da6
parentab1be769ff42199b2deefd9f8318c759a7aa40ec (diff)
downloadpiny-code-74f36e7294764b136514b2ed67b9345fdc6e1e44.tar.gz
piny-code-74f36e7294764b136514b2ed67b9345fdc6e1e44.zip
libpiny: whoops, missed apachereload check on destroy_apache
-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 {