aboutsummaryrefslogtreecommitdiff
path: root/src/sshd/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/sshd/install.sh')
-rwxr-xr-xsrc/sshd/install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sshd/install.sh b/src/sshd/install.sh
index a93b927..1fbaa8d 100755
--- a/src/sshd/install.sh
+++ b/src/sshd/install.sh
@@ -10,7 +10,7 @@
# Note: You can change your user's password with "sudo passwd $(whoami)" (or just "passwd" if running as root).
SSHD_PORT=${SSHD_PORT:-"2222"}
-USERNAME=${USERNAME:-"automatic"}
+USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}"
START_SSHD=${START_SSHD:-"false"}
NEW_PASSWORD=${NEW_PASSWORD:-"skip"}
FIX_ENVIRONMENT=${FIX_ENVIRONMENT:-"true"}