mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
disable built in redis if env set
This commit is contained in:
@@ -107,7 +107,10 @@ cd /backend || { error_log "/backend directory doesn't seem to exist"; }
|
||||
# function definition done, lets start our main loop
|
||||
while true; do
|
||||
# Start redis server if we dont have a corresponding PID file
|
||||
watchdog_process_pid bin redis-server
|
||||
# and REDIS_HOST is not set (which would mean we're using an external redis)
|
||||
if [[ -z "${REDIS_HOST}" ]]; then
|
||||
watchdog_process_pid bin redis-server
|
||||
fi
|
||||
|
||||
# Run needed database migrations on startup,
|
||||
# but only if it was not successful since the last full docker container start
|
||||
|
||||
Reference in New Issue
Block a user