diff options
author | jrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org> | 2013-04-12 20:18:42 -0700 |
---|---|---|
committer | jrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org> | 2013-04-12 20:18:42 -0700 |
commit | 74f36e7294764b136514b2ed67b9345fdc6e1e44 (patch) | |
tree | eff26db064c9dac4b9643625e9eed7c19fb80da6 /libpiny/lib/Piny/Repo.pm | |
parent | ab1be769ff42199b2deefd9f8318c759a7aa40ec (diff) | |
download | piny-code-74f36e7294764b136514b2ed67b9345fdc6e1e44.tar.gz piny-code-74f36e7294764b136514b2ed67b9345fdc6e1e44.zip |
libpiny: whoops, missed apachereload check on destroy_apache
Diffstat (limited to 'libpiny/lib/Piny/Repo.pm')
-rw-r--r-- | libpiny/lib/Piny/Repo.pm | 4 |
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 { |