diff options
-rw-r--r-- | modules/phpbb/manifests/init.pp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp index 328f116a..364b587d 100644 --- a/modules/phpbb/manifests/init.pp +++ b/modules/phpbb/manifests/init.pp @@ -69,7 +69,16 @@ class phpbb { command =>"git clone git://git.$domain/forum/ $lang", cwd => $forums_dir, creates => "$forums_dir/$lang", - require => File["$forums_dir"] + require => File["$forums_dir"], + notify => "rm_install $lang", + } + + # remove this or the forum will not work ( 'board disabled' ) + # maybe it would be better to move this elsehwere, I + # am not sure ( and in any case, that's still in git ) + exec { "rm_install $lang": + command => "rm -Rf $forums_dir/$lang/phpBB/install": + onlyif => "test -d $forums_dir/$lang/phpBB/install", } # TODO manage the permission of the various subdirectories |