mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
fix: fix remote_up script
This commit is contained in:
parent
07cea13caa
commit
66f8083cc0
1 changed files with 9 additions and 2 deletions
11
remote_up.sh
11
remote_up.sh
|
|
@ -66,7 +66,14 @@ else
|
|||
fi
|
||||
|
||||
if [[ "$MODE" == "build" ]]; then
|
||||
exec "${COMPOSE_CMD[@]}" --profile remote up -d --build --force-recreate "${EXTRA_ARGS[@]}"
|
||||
CMD=("${COMPOSE_CMD[@]}" --profile remote up -d --build --force-recreate)
|
||||
else
|
||||
exec "${COMPOSE_CMD[@]}" --profile remote up -d --pull always --force-recreate "${EXTRA_ARGS[@]}"
|
||||
CMD=("${COMPOSE_CMD[@]}" --profile remote up -d --pull always --force-recreate)
|
||||
fi
|
||||
|
||||
# Bash 3.2 on macOS treats "${empty_array[@]}" as unbound under `set -u`.
|
||||
if (( ${#EXTRA_ARGS[@]} )); then
|
||||
CMD+=("${EXTRA_ARGS[@]}")
|
||||
fi
|
||||
|
||||
exec "${CMD[@]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue