From b106440752c1c2c786642a6b656a92738715f9ff Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 27 May 2021 15:53:02 +0000 Subject: [PATCH] Set username from SSH_CLIENT in chroot --- scripts/chroot-prompt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/chroot-prompt.sh b/scripts/chroot-prompt.sh index 9adff95..1e626cf 100644 --- a/scripts/chroot-prompt.sh +++ b/scripts/chroot-prompt.sh @@ -3,5 +3,5 @@ set -eu printf 'Name: ' read -r nick rest -printf '%s %s\n' "$nick" "${SSH_CLIENT:-}" >>nicks.log -exec catgirl -n "$nick" -s "$nick" "$@" +printf '%s %s\n' "$nick" "$SSH_CLIENT" >>nicks.log +exec catgirl -K -n "$nick" -s "$nick" -u "${SSH_CLIENT%% *}" "$@"