Set username from SSH_CLIENT in chroot

weechat-hashes
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: ' printf 'Name: '
read -r nick rest read -r nick rest
printf '%s %s\n' "$nick" "${SSH_CLIENT:-}" >>nicks.log printf '%s %s\n' "$nick" "$SSH_CLIENT" >>nicks.log
exec catgirl -n "$nick" -s "$nick" "$@" exec catgirl -K -n "$nick" -s "$nick" -u "${SSH_CLIENT%% *}" "$@"