diff options
-rwxr-xr-x | psshd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |