add messaging

This commit is contained in:
tom 2018-10-11 15:59:47 +02:00
parent 409d736339
commit a1bf381370

View file

@ -136,8 +136,10 @@ elif [ "$state" = "absent" ]; then
#user exists, but state != present, so delete it
if [ -f "$__object/parameter/remove-home" ]; then
echo userdel -r "${name}"
echo "userdel -r" >> "$__messages_out"
else
echo userdel "${name}"
echo "userdel" >> "$__messages_out"
fi
fi
else