Skip to content

Commit 90b2693

Browse files
authored
Update user.pp
If managehome is set to true, prevent the purge_user_home from attempting to delete the home dir
1 parent 7009d89 commit 90b2693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/user.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
home => $_home,
237237
managehome => $managehome,
238238
}
239-
if $purge_user_home {
239+
if $purge_user_home && !$managehome {
240240
file { $_home:
241241
ensure => 'absent',
242242
recurse => true,

0 commit comments

Comments
 (0)