Commit 422373a4 authored by mh's avatar mh
Browse files

only required if not absent

parent 3cf5704f
......@@ -149,18 +149,22 @@ define webhosting::php::typo3(
} else {
$real_run_gid_name = $run_gid_name
}
Apache::Vhost::Php::Typo3[$name]{
documentroot_owner => $real_uid_name,
documentroot_group => $real_gid_name,
run_uid => $real_run_uid_name,
run_gid => $real_run_gid_name,
require => [User::Sftp_only[$real_uid_name],
User::Managed[$real_run_uid_name] ],
if $ensure != 'absent' {
Apache::Vhost::Php::Typo3[$name]{
documentroot_owner => $real_uid_name,
documentroot_group => $real_gid_name,
run_uid => $real_run_uid_name,
run_gid => $real_run_gid_name,
require => [User::Sftp_only[$real_uid_name],
User::Managed[$real_run_uid_name] ],
}
}
}
default: {
Apache::Vhost::Php::Typo3[$name]{
require => User::Sftp_only[$real_uid_name],
if $ensure != 'absent' {
Apache::Vhost::Php::Typo3[$name]{
require => User::Sftp_only[$real_uid_name],
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment