From b8d98d4ad6cc3f9711164c9982cf2b38133b9a38 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 22 Feb 2011 01:04:21 +0000 Subject: - phpbb enforce that install is not present ( which is a good thing for security, and a bad thing because this force me to do some hack like this) --- modules/phpbb/manifests/init.pp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1