From d8337ccd98e326317c4942ec78214c0873f4f0d9 Mon Sep 17 00:00:00 2001 From: vrenaville Date: Fri, 29 Apr 2022 10:40:21 +0200 Subject: [PATCH] fix: inactivate command for debug purpose --- rootfs/entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rootfs/entrypoint.sh b/rootfs/entrypoint.sh index 0f722e4..88cab45 100755 --- a/rootfs/entrypoint.sh +++ b/rootfs/entrypoint.sh @@ -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