mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Lint
This commit is contained in:
@@ -41,7 +41,7 @@ if [[ "$DATABASE_URL" == *"localhost"* ]]; then
|
|||||||
# Create database if does not exist
|
# Create database if does not exist
|
||||||
echo "CREATE DATABASE linkwarden; GRANT ALL PRIVILEGES ON DATABASE linkwarden to postgres;
|
echo "CREATE DATABASE linkwarden; GRANT ALL PRIVILEGES ON DATABASE linkwarden to postgres;
|
||||||
\q"> setup_postgres.sql
|
\q"> setup_postgres.sql
|
||||||
sudo -u postgres bash -c 'psql "postgres://postgres:homeassistant@localhost:5432"' < setup_postgres.sql || true
|
sudo -u postgres bash -c 'cat setup_postgres.sql | psql "postgres://postgres:homeassistant@localhost:5432"' || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
########################
|
########################
|
||||||
|
|||||||
Reference in New Issue
Block a user