aboutsummaryrefslogtreecommitdiff
path: root/psshd
diff options
context:
space:
mode:
Diffstat (limited to 'psshd')
-rwxr-xr-xpsshd4
1 files changed, 2 insertions, 2 deletions
diff --git a/psshd b/psshd
index bbd44eb..0806bb8 100755
--- a/psshd
+++ b/psshd
@@ -54,14 +54,14 @@ if ! [[ "$port" ]]; then
fi
# Set up a PID dir
-rundir=${TMPDIR:-/tmp}/psshd-${UID}
+rundir=${TMPDIR:-/tmp}/psshd-$UID
if ! mkdir -p "$rundir"; then
printf 'Could not create directory %s for PID file\n' "$rundir" >&2
exit 1
fi
# Export the two settings autossh absolutely needs
-AUTOSSH_PIDFILE=${rundir}/psshd-port-${port}.pid
+AUTOSSH_PIDFILE=$rundir/psshd-port-${port}.pid
AUTOSSH_PORT=$port
export AUTOSSH_PIDFILE AUTOSSH_PORT