gitreef

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit e4671ac2614317002fc9342777a5530e73a79c50
parent 994464f8380634a1f5e730cf386e8510674eab87
Author: Matthias Jaros <jaros@mailbox.org>
Date:   Sat, 15 Nov 2025 13:15:58 +0100

Only create ssh folder when setting up non existing user

Diffstat:
Msrc/init | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/init b/src/init @@ -43,10 +43,11 @@ function setupUser addgroup "$user" $_GIT_SUDO_GROUP; or fail "Failed to add user $user to group $_GIT_SUDO_GROUP" # unlock account to allow ssh logins passwd -u "$user" &>/dev/null; or fail "Failed to unlock account of $user" + # create ssh folder + mkdir "$HOME/.ssh" end # Copy/Overwrite ssh key - mkdir "$HOME/.ssh" echo "$key" > "$HOME/.ssh/authorized_keys" chown -R $user "$HOME" chmod -R 700 "$HOME"