Fix syntax error in condition check for homeserver.yaml in start.sh
This commit is contained in:
2
start.sh
2
start.sh
@@ -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..."
|
||||||
|
Reference in New Issue
Block a user