summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-05-27 15:53:02 +0000
committerJune McEnroe <june@causal.agency>2021-05-27 15:53:02 +0000
commitb106440752c1c2c786642a6b656a92738715f9ff (patch)
tree5d0896b5f412cae138661cfab6c12c4405f73d9a /scripts
parentHash the username in kiosk mode (diff)
downloadcatgirl-b106440752c1c2c786642a6b656a92738715f9ff.tar.gz
catgirl-b106440752c1c2c786642a6b656a92738715f9ff.zip
Set username from SSH_CLIENT in chroot
Diffstat (limited to '')
-rw-r--r--scripts/chroot-prompt.sh4
1 files 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%% *}" "$@"