Skip to content

Commit

Permalink
try to fix the compose flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristian Goina committed Oct 30, 2024
1 parent 2e0e6d5 commit 29ec9e2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -744,16 +744,17 @@ do
$SUDO $DOCKER stack rm ${COMPOSE_PROJECT_NAME}_elk && sleep $SLEEP_TIME

elif [[ "$COMMAND" == "compose" ]]; then

COMPOSE_COMMAND=$1
shift 1 # remove compose command

echo "compose flags: ${@}"
if [[ $1 == "--dbonly" ]]; then
echo "Start docker-compose only with DB services"
shift 1 # remove dbonly flag
COMPOSE_COMMAND=$1
shift 1 # remove compose command
# if dbonly
getyml $STAGE "dbonly" "" "YML"
else
COMPOSE_COMMAND=$1
shift 1 # remove compose command
getyml $STAGE "" "" "YML"
fi

Expand Down

0 comments on commit 29ec9e2

Please sign in to comment.