diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-20 17:32:52 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-05-20 17:32:52 +0200 |
commit | 1ef0a1d885aca7b83385b0a868e641380ff9909c (patch) | |
tree | 52742e016647b3c336a645788d4fe064d00d5732 /setup-user.in | |
parent | a68afcb7a34c63b1e180d3b69c06282195f1a7cd (diff) | |
download | alpine-conf-1ef0a1d885aca7b83385b0a868e641380ff9909c.zip |
setup-user: use 'none' as the default for now
Diffstat (limited to 'setup-user.in')
-rw-r--r-- | setup-user.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setup-user.in b/setup-user.in index 8686efb..8733dc9 100644 --- a/setup-user.in +++ b/setup-user.in @@ -75,7 +75,7 @@ done if [ -n "$interactive" ] && [ -z "$keysopt" ]; then while true; do - ask "Enter ssh key or URL for $username (or 'none')" + ask "Enter ssh key or URL for $username (or 'none')" none case "$resp" in none) break;; https://*|http://*) sshkeys=$(wget -q -O- $resp | grep ^ssh-);; @@ -104,6 +104,7 @@ fi if [ -n "$sshkeys" ] && [ "$sshkeys" != "none" ]; then mkdir -p "$ROOT"/home/$username/.ssh echo "$sshkeys" > "$ROOT"/home/$username/.ssh/authorized_keys + $MOCK chown -R $username:$username "$ROOT"/home/$username/.ssh fi if [ -n "$groups" ] && [ "$groups" != "none" ]; then |