We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 325b64a + 011fee9 commit e7bb102Copy full SHA for e7bb102
start-redis.sh
@@ -15,13 +15,13 @@ fi
15
16
DOCKER_RUN_ARGS="--name $REDIS_CONTAINER_NAME --publish $REDIS_PORT:6379 --detach $REDIS_IMAGE:$REDIS_VERSION"
17
18
-if [ -n "$REDIS_PASSWORD" ]; then
19
- DOCKER_RUN_ARGS="$DOCKER_RUN_ARGS redis-server --requirepass $REDIS_PASSWORD"
20
-fi
21
-
22
if [ "$REDIS_REMOVE_CONTAINER" == "true" ]; then
23
DOCKER_RUN_ARGS="$DOCKER_RUN_ARGS --rm"
24
fi
25
+if [ -n "$REDIS_PASSWORD" ]; then
+ DOCKER_RUN_ARGS="$DOCKER_RUN_ARGS redis-server --requirepass $REDIS_PASSWORD"
+fi
+
26
echo "Starting single-node Redis instance: $DOCKER_RUN_ARGS"
27
docker run $DOCKER_RUN_ARGS
0 commit comments