Skip to content

Commit

Permalink
Remove mount when no DIR specified
Browse files Browse the repository at this point in the history
  • Loading branch information
efrecon committed Feb 13, 2024
1 parent bb5dad1 commit 9fe4ea8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion orchestrator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9fe4ea8

Please sign in to comment.