diff options
author | jrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org> | 2013-04-12 19:48:28 -0700 |
---|---|---|
committer | jrayhawk+piny.be@omgwallhack.org <jrayhawk+piny.be@omgwallhack.org> | 2013-04-12 19:48:28 -0700 |
commit | ab1be769ff42199b2deefd9f8318c759a7aa40ec (patch) | |
tree | 7f55bb1b4ee80a0835cf8d5deaea936c74fef8c2 /libpiny/lib | |
parent | cd440bfd3d6e20146e77e1d6c0e9f579687ca2ab (diff) | |
download | piny-code-ab1be769ff42199b2deefd9f8318c759a7aa40ec.tar.gz piny-code-ab1be769ff42199b2deefd9f8318c759a7aa40ec.zip |
libpiny: renaming reloadapache to apachereload
Diffstat (limited to 'libpiny/lib')
-rw-r--r-- | libpiny/lib/Piny/Config.pm | 2 | ||||
-rw-r--r-- | libpiny/lib/Piny/Repo.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libpiny/lib/Piny/Config.pm b/libpiny/lib/Piny/Config.pm index eb78a0f..0f02921 100644 --- a/libpiny/lib/Piny/Config.pm +++ b/libpiny/lib/Piny/Config.pm @@ -259,13 +259,13 @@ tweakable "piny_template" => undef, 'Maybe[PathDir]', 'inhibit'; tweakable "piny_gitpath" => '/srv/git', 'PathDir'; # Repo-specific tweakables, in the repos' .git/config files. +tweakable "piny_apachereload" => "true", 'GitBool'; tweakable "piny_ikiwiki" => "true", 'GitBool'; tweakable "piny_ikiwikidestdir" => "/srv/www/piny.be/", 'PathDir'; tweakable "piny_ikiwikisrcdir" => "/srv/ikiwiki/", 'PathDir'; tweakable "piny_ikiwikiurl" => "http://piny.be/", 'HttpUrl'; tweakable "piny_ikiwikisecureurl" => "https://secure.piny.be/", 'HttpsUrl'; tweakable "piny_ikiwikisecurepath" => "/srv/www/secure.piny.be/", 'PathDir'; -tweakable "piny_reloadapache" => "true", 'GitBool'; tweakable "core_sharedrepository" => '0664', 'RepoPermission'; tweakable "receive_denynonfastforwards" => "true", 'GitBool'; tweakable "receive_denydeletes" => "true", 'GitBool'; diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm index a735a16..3376ea7 100644 --- a/libpiny/lib/Piny/Repo.pm +++ b/libpiny/lib/Piny/Repo.pm @@ -330,7 +330,7 @@ sub rebuild_apache { $wwwtemp->close or die "Could not close new wikilist: $!"; rename( $wwwtemp->filename, "/etc/apache2/piny/www/" . $s->name ) or die "Could not rename apache config: $!"; - if ( $s->config->piny_reloadapache =~ /^(1|true)$/ ) { + if ( $s->config->piny_apachereload =~ /^(1|true)$/ ) { system( "/etc/init.d/apache2", "reload" ) and die "Could not reload apache config!"; }; }; |