From e7b69ff4c5a13600b9fc1e20a93ff8fec4237bc7 Mon Sep 17 00:00:00 2001 From: Olaf Bohlen <olbohlen@eenfach.de> Date: Tue, 25 Aug 2020 10:48:09 +0200 Subject: [PATCH] fixes and include sudo --- templates/sysding.j2 | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/templates/sysding.j2 b/templates/sysding.j2 index b2416ad..17bb857 100644 --- a/templates/sysding.j2 +++ b/templates/sysding.j2 @@ -16,6 +16,9 @@ {% endif %} chown -R {{ user['name'] }}:{{ user['gid'] }} {{ user['home'] }} {% endif %} +{% if user['sudoers'] is defined %} +echo "{{ user['sudoers'] }}" >/etc/sudoers.d/"{{ user['name'] }}" +{% endif %} setup_user_password {{ user['name'] }} '{{ user["hashedpassword"] }}' {% endfor %} -- Gitblit v1.9.3