Set username from SSH_CLIENT in chroot
parent
6d5bcf72c1
commit
b106440752
|
@ -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%% *}" "$@"
|
||||||
|
|
Loading…
Reference in New Issue