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