Преглед изворни кода

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.
tags/v0.45.0
Philippe Pepiot пре 6 година
родитељ
комит
944e904419
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      users/init.sls

+ 1
- 1
users/init.sls Прегледај датотеку

@@ -64,7 +64,7 @@ users_{{ name }}_{{ group }}_group:
{% if user.get('createhome', True) %}
users_{{ name }}_user_prereq:
file.directory:
- name: {{ home }}
- name: {{ salt['file.dirname'](home) }}
- makedirs: True
- prereq:
- user: users_{{ name }}_user

Loading…
Откажи
Сачувај