summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
Diffstat (limited to 'src/init')
-rwxr-xr-xsrc/init3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init b/src/init
index 64564da..b25637c 100755
--- 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"