summaryrefslogtreecommitdiff
path: root/setup-user.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-05-20 17:32:52 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2022-05-20 17:32:52 +0200
commit1ef0a1d885aca7b83385b0a868e641380ff9909c (patch)
tree52742e016647b3c336a645788d4fe064d00d5732 /setup-user.in
parenta68afcb7a34c63b1e180d3b69c06282195f1a7cd (diff)
downloadalpine-conf-1ef0a1d885aca7b83385b0a868e641380ff9909c.zip
setup-user: use 'none' as the default for now
Diffstat (limited to 'setup-user.in')
-rw-r--r--setup-user.in3
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