From e7516dd466cfa69caf58e60bf172d5742c123496 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 18 Mar 2024 16:50:26 +0100 Subject: [PATCH] Update 99-run.sh --- linkwarden/rootfs/etc/cont-init.d/99-run.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/linkwarden/rootfs/etc/cont-init.d/99-run.sh b/linkwarden/rootfs/etc/cont-init.d/99-run.sh index 1b9ffa17c..eb8df741a 100755 --- a/linkwarden/rootfs/etc/cont-init.d/99-run.sh +++ b/linkwarden/rootfs/etc/cont-init.d/99-run.sh @@ -17,6 +17,10 @@ bashio::log.info "Starting app..." yarn prisma migrate deploy yarn start docker-entrypoint.sh & true +###################### +# CONFIGURE POSTGRES # +###################### + bashio::log.info "Starting postgres..." mkdir -p /config/postgres mkdir -p /var/run/postgresql @@ -28,4 +32,6 @@ if [ -e /config/postgres/postgresql.conf ]; then else postgres /usr/lib/postgresql/*/bin/initdb fi -postgres /usr/lib/postgresql/*/bin/postgres -D /config/postgres/ + +bashio::log.info "Starting postgres..." +service postgresql start