Commit b57fcf8c authored by mh's avatar mh
Browse files

Revert "we can ignore them on being absent"

This reverts commit 09cfede5.

We can't ignore them on absent, otherwise the incron jobs don't
get cleaned up.
parent cb345fdd
......@@ -192,16 +192,18 @@ define webhosting::common(
run_user => $real_run_uid_name,
}
if $ensure != 'absent' {
webhosting::user_scripts::manage{$name:
ensure => $user_scripts,
base_path => $vhost_path,
scripts => $user_scripts,
sftp_user => $real_uid_name,
run_user => $real_run_uid_name,
web_group => $real_gid_name,
options => $user_scripts_options,
}
$user_scripts_ensure = $ensure ? {
'absent' => 'absent',
default => $user_scripts
}
webhosting::user_scripts::manage{$name:
ensure => $user_scripts_ensure,
base_path => $vhost_path,
scripts => $user_scripts,
sftp_user => $real_uid_name,
run_user => $real_run_uid_name,
web_group => $real_gid_name,
options => $user_scripts_options,
}
if ($git_repo != 'absent') and ($ensure != 'absent') {
webhosting::utils::clone{
......
Supports Markdown
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