Set username from SSH_CLIENT in chroot

master
C. McEnroe 2021-05-27 15:53:02 +00:00
parent 6d5bcf72c1
commit b106440752
1 changed files with 2 additions and 2 deletions

View File

@ -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%% *}" "$@"