Skip to content

Commit

Permalink
Merge pull request #14345 from Budibase/ops/redis-server-runner-requi…
Browse files Browse the repository at this point in the history
…repass

feat: only use requirepass if password's set
  • Loading branch information
calexiou authored Aug 8, 2024
2 parents 7322dda + 4b03373 commit f3f6f8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hosting/single/runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 [[ -n "${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
Expand Down

0 comments on commit f3f6f8d

Please sign in to comment.