mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-16 22:01:48 +02:00
Update 99-run.sh
This commit is contained in:
@@ -27,6 +27,12 @@ echo "... starting server"
|
|||||||
service postgresql start & true
|
service postgresql start & true
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
|
echo "... create user"
|
||||||
|
# Create database if does not exist
|
||||||
|
echo "CREATE ROLE postgres WITH LOGIN SUPERUSER CREATEDB CREATEROLE PASSWORD 'homeassistant';
|
||||||
|
\q"> setup_postgres.sql
|
||||||
|
psql "postgres://postgres:homeassistant&localhost:5432/linkwarden" < setup_postgres.sql || true
|
||||||
|
|
||||||
if [ -e /config/postgres/postgresql.conf ]; then
|
if [ -e /config/postgres/postgresql.conf ]; then
|
||||||
echo "... database already configured"
|
echo "... database already configured"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user