mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-28 00:40:31 +02:00
Update 99-run.sh
This commit is contained in:
@@ -17,6 +17,10 @@ bashio::log.info "Starting app..."
|
|||||||
yarn prisma migrate deploy
|
yarn prisma migrate deploy
|
||||||
yarn start docker-entrypoint.sh & true
|
yarn start docker-entrypoint.sh & true
|
||||||
|
|
||||||
|
######################
|
||||||
|
# CONFIGURE POSTGRES #
|
||||||
|
######################
|
||||||
|
|
||||||
bashio::log.info "Starting postgres..."
|
bashio::log.info "Starting postgres..."
|
||||||
mkdir -p /config/postgres
|
mkdir -p /config/postgres
|
||||||
mkdir -p /var/run/postgresql
|
mkdir -p /var/run/postgresql
|
||||||
@@ -28,4 +32,6 @@ if [ -e /config/postgres/postgresql.conf ]; then
|
|||||||
else
|
else
|
||||||
postgres /usr/lib/postgresql/*/bin/initdb
|
postgres /usr/lib/postgresql/*/bin/initdb
|
||||||
fi
|
fi
|
||||||
postgres /usr/lib/postgresql/*/bin/postgres -D /config/postgres/
|
|
||||||
|
bashio::log.info "Starting postgres..."
|
||||||
|
service postgresql start
|
||||||
|
|||||||
Reference in New Issue
Block a user