Skip to content

Commit

Permalink
Merge pull request #9 from vrenaville/fix_exec
Browse files Browse the repository at this point in the history
fix: inactivate command for debug purpose
  • Loading branch information
vrenaville authored Apr 29, 2022
2 parents fcde2a8 + d8337cc commit 621a28f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rootfs/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,8 @@ COMMAND="autossh "\

echo "[INFO ] # ${COMMAND}"

# Run command
exec ${COMMAND}
if [ -n "${AUTOSSH_DEBUG}" ]; then
echo "[DEBUG] on autossh not started automatically"
else
exec ${COMMAND}
fi

0 comments on commit 621a28f

Please sign in to comment.