feat: only use requirepass if password's set

This commit is contained in:
Christos Alexiou 2024-08-08 15:54:34 +03:00
parent d03915d194
commit f2c61d616f
1 changed files with 5 additions and 1 deletions

View File

@ -80,7 +80,11 @@ ln -s ${DATA_DIR}/.env /worker/.env
# make these directories in runner, incase of mount
mkdir -p ${DATA_DIR}/minio
chown -R couchdb:couchdb ${DATA_DIR}/couch
redis-server --requirepass $REDIS_PASSWORD > /dev/stdout 2>&1 &
if [[ -z "${REDIS_PASSWORD}" ]]; then
redis-server --requirepass $REDIS_PASSWORD > /dev/stdout 2>&1 &
else
redis-server > /dev/stdout 2>&1 &
fi
/bbcouch-runner.sh &
# only start minio if use s3 isn't passed