Merge pull request #753 from rommapp/master

Fixed REDIS_HOST check
This commit is contained in:
Zurdi
2024-03-25 10:47:04 +01:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
#!/bin/bash
VERSION="2.0.0"
branch_name="$(git symbolic-ref HEAD 2>/dev/null)"
branch_name=${branch_name##refs/heads/}
docker build -t rommapp/romm:local-${VERSION}-${branch_name} . --file ./docker/Dockerfile
docker build -t rommapp/romm:local-${branch_name} . --file ./docker/Dockerfile

View File

@@ -108,7 +108,7 @@ cd /backend || { error_log "/backend directory doesn't seem to exist"; }
while true; do
# Start redis server if we dont have a corresponding PID file
# and REDIS_HOST is not set (which would mean we're using an external redis)
if [[ -z "${REDIS_HOST}" ]]; then
if [[ -z "${REDIS_HOST:=""}" ]]; then
watchdog_process_pid bin redis-server
fi