Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Aug 15, 2023
1 parent 507b06b commit 557d48f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start-redis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ fi

DOCKER_RUN_ARGS="--name $REDIS_CONTAINER_NAME --publish $REDIS_PORT:6379 --detach $REDIS_IMAGE:$REDIS_VERSION"

if [ -n "$REDIS_PASSWORD" ] ; then
if [ -n "$REDIS_PASSWORD" ]; then
DOCKER_RUN_ARGS="$DOCKER_RUN_ARGS redis-server --requirepass $REDIS_PASSWORD"
fi

if [ "$REDIS_REMOVE_CONTAINER" == "true" ] ; then
if [ "$REDIS_REMOVE_CONTAINER" == "true" ]; then
DOCKER_RUN_ARGS="$DOCKER_RUN_ARGS --rm"
fi

Expand Down

0 comments on commit 557d48f

Please sign in to comment.