aboutsummaryrefslogtreecommitdiff
path: root/src/sshd/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/sshd/install.sh')
-rwxr-xr-xsrc/sshd/install.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sshd/install.sh b/src/sshd/install.sh
index a93b927..634f163 100755
--- a/src/sshd/install.sh
+++ b/src/sshd/install.sh
@@ -9,11 +9,11 @@
#
# 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"}
-START_SSHD=${START_SSHD:-"false"}
-NEW_PASSWORD=${NEW_PASSWORD:-"skip"}
-FIX_ENVIRONMENT=${FIX_ENVIRONMENT:-"true"}
+SSHD_PORT="${SSHD_PORT:-"2222"}"
+USERNAME="${USERNAME:-"${_REMOTE_USER:-"automatic"}"}"
+START_SSHD="${START_SSHD:-"false"}"
+NEW_PASSWORD="${NEW_PASSWORD:-"skip"}"
+FIX_ENVIRONMENT="${FIX_ENVIRONMENT:-"true"}"
set -e