diff options
author | Michael Scherer <misc@mageia.org> | 2011-02-22 01:04:21 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-02-22 01:04:21 +0000 |
commit | b8d98d4ad6cc3f9711164c9982cf2b38133b9a38 (patch) | |
tree | bea5470d9235e96553ec48dd401fcb5ee9fed173 /modules/phpbb/manifests | |
parent | 48e4e93c0e64ee6ade742cafe217221280b53115 (diff) | |
download | puppet-b8d98d4ad6cc3f9711164c9982cf2b38133b9a38.tar puppet-b8d98d4ad6cc3f9711164c9982cf2b38133b9a38.tar.gz puppet-b8d98d4ad6cc3f9711164c9982cf2b38133b9a38.tar.bz2 puppet-b8d98d4ad6cc3f9711164c9982cf2b38133b9a38.tar.xz puppet-b8d98d4ad6cc3f9711164c9982cf2b38133b9a38.zip |
- 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)
Diffstat (limited to 'modules/phpbb/manifests')
-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 |