aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-07 18:42:19 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-07 18:42:19 +1200
commitb9aa6e885a0ab4fb74faa67b257bf44237b3a3ab (patch)
treecd6d5d54fcb5d08561b2b843e41b2fa4885d7fe1
parentUse proper quoting (diff)
downloadpsshd-b9aa6e885a0ab4fb74faa67b257bf44237b3a3ab.tar.gz
psshd-b9aa6e885a0ab4fb74faa67b257bf44237b3a3ab.zip
Explicit export on one line
-rwxr-xr-xpsshd5
1 files changed, 3 insertions, 2 deletions
diff --git a/psshd b/psshd
index 14b3345..9490892 100755
--- a/psshd
+++ b/psshd
@@ -51,8 +51,9 @@ then
fi
# Export the two settings autossh absolutely needs
-export AUTOSSH_PORT="$port"
-export AUTOSSH_PIDFILE="${dir}/psshd-port-${port}.pid"
+AUTOSSH_PIDFILE="${dir}/psshd-port-${port}.pid"
+AUTOSSH_PORT="$port"
+export AUTOSSH_PIDFILE AUTOSSH_PORT
# Use start-stop-daemon to run it sanely
"$startstopdaemon" \