Fix default behavior of copying /etc/skel when creating home directory
Since https://github.com/saltstack-formulas/users-formula/pull/182 the home directory was created by salt which prevent "adduser" behavior to copy /etc/skel in newly created directory. Ensure the parent directory of the home dir is existing instead.
This commit is contained in:
parent
6fc624db9e
commit
944e904419
@ -64,7 +64,7 @@ users_{{ name }}_{{ group }}_group:
|
|||||||
{% if user.get('createhome', True) %}
|
{% if user.get('createhome', True) %}
|
||||||
users_{{ name }}_user_prereq:
|
users_{{ name }}_user_prereq:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: {{ home }}
|
- name: {{ salt['file.dirname'](home) }}
|
||||||
- makedirs: True
|
- makedirs: True
|
||||||
- prereq:
|
- prereq:
|
||||||
- user: users_{{ name }}_user
|
- user: users_{{ name }}_user
|
||||||
|
Loading…
Reference in New Issue
Block a user