This commit is contained in:
Alexandre
2025-05-13 14:23:34 +02:00
committed by GitHub
parent fc2a88fabc
commit 38638a5920

View File

@@ -41,7 +41,7 @@ if [[ "$DATABASE_URL" == *"localhost"* ]]; then
# Create database if does not exist
echo "CREATE DATABASE linkwarden; GRANT ALL PRIVILEGES ON DATABASE linkwarden to postgres;
\q"> setup_postgres.sql
sudo -u postgres psql "postgres://postgres:homeassistant@localhost:5432" < setup_postgres.sql || true
sudo -u postgres bash -c 'psql "postgres://postgres:homeassistant@localhost:5432"' < setup_postgres.sql || true
fi
########################