Fix syntax error in condition check for homeserver.yaml in start.sh
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
gyurix
2025-08-31 13:54:52 +02:00
parent cea341399c
commit 6732bc332a

View File

@@ -14,7 +14,7 @@ ADMIN_PASSWORD="${ADMIN_PASSWORD:-changeme}"
HOMESERVER_URL="${HOMESERVER_URL:-http://$SYNAPSE_HOST:$SYNAPSE_PORT}" HOMESERVER_URL="${HOMESERVER_URL:-http://$SYNAPSE_HOST:$SYNAPSE_PORT}"
prepare_postgres () { prepare_postgres () {
if [ -f "/data/homeserver.yaml" ]; then; if [ -f /data/homeserver.yaml ]; then
DB_TYPE=$(yq '.database.name' /data/homeserver.yaml 2>/dev/null ) DB_TYPE=$(yq '.database.name' /data/homeserver.yaml 2>/dev/null )
if [ "$DB_TYPE" != "psycopg2" ]; then if [ "$DB_TYPE" != "psycopg2" ]; then
echo "Preparing PostgreSQL database..." echo "Preparing PostgreSQL database..."