From 9fe4ea88316d15568cde430fc9b116756c23e725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Fr=C3=A9con?= Date: Tue, 13 Feb 2024 23:44:31 +0100 Subject: [PATCH] Remove mount when no DIR specified --- orchestrator.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/orchestrator.sh b/orchestrator.sh index fb3b4cb..17700ba 100755 --- a/orchestrator.sh +++ b/orchestrator.sh @@ -202,7 +202,9 @@ set -- \ --mem "$ORCHESTRATOR_MEMORY" \ --dns "$ORCHESTRATOR_DNS" \ --name "$ORCHESTRATOR_NAME" -set -- "$@" --volume "${ORCHESTRATOR_ROOTDIR}:${ORCHESTRATOR_DIR}" +if [ -n "${ORCHESTRATOR_DIR:-}" ]; then + set -- "$@" --volume "${ORCHESTRATOR_ROOTDIR}:${ORCHESTRATOR_DIR}" +fi if [ -n "${ORCHESTRATOR_ENVIRONMENT:-}" ]; then set -- "$@" --volume "${ORCHESTRATOR_ENVIRONMENT}:/_environment" fi