summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-06-12 08:54:15 +0200
committermh <mh@immerda.ch>2010-06-12 08:54:15 +0200
commitc01166a05d3a2aa3c62b913902cd6a247ab2616c (patch)
treee892362d46364922aa63c12e0f005bbcf15838a5 /manifests
parenta04f31435ab3b51441db68c4b1020fe2e0b02946 (diff)
get the decision branch right
Diffstat (limited to 'manifests')
-rw-r--r--manifests/vhost/php/gallery2.pp8
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/vhost/php/gallery2.pp b/manifests/vhost/php/gallery2.pp
index 7f38895..fde5d0d 100644
--- a/manifests/vhost/php/gallery2.pp
+++ b/manifests/vhost/php/gallery2.pp
@@ -68,11 +68,11 @@ define apache::vhost::php::gallery2(
owner => $documentroot_owner, group => $documentroot_group, mode => 0660;
}
- if $upload_dir != 'present' {
+ if ($upload_dir == 'present') or ($upload_dir == 'absent') {
$real_upload_dir = $operatingsystem ? {
- openbsd => "/var/www/htdocs/${name}/upload",
- default => "/var/www/vhosts/${name}/upload"
- }
+ openbsd => "/var/www/htdocs/${name}/upload",
+ default => "/var/www/vhosts/${name}/upload"
+ }
} else {
$real_upload_dir = $upload_dir
}