From 1ef0a1d885aca7b83385b0a868e641380ff9909c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 20 May 2022 17:32:52 +0200 Subject: setup-user: use 'none' as the default for now --- setup-user.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup-user.in') 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 -- cgit v1.2.3