From 05e350f74e4836d09948e7b7ad6afda937573207 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 16 Jul 2025 22:46:09 +0200 Subject: [PATCH] Update 99-run.sh --- ente/rootfs/etc/cont-init.d/99-run.sh | 45 ++++++++++++++------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/ente/rootfs/etc/cont-init.d/99-run.sh b/ente/rootfs/etc/cont-init.d/99-run.sh index beb06d09d..f45acbf35 100755 --- a/ente/rootfs/etc/cont-init.d/99-run.sh +++ b/ente/rootfs/etc/cont-init.d/99-run.sh @@ -104,30 +104,33 @@ wait_postgres_ready() { } bootstrap_internal_db() { - if $USE_EXTERNAL_DB; then - return 0 - fi - bashio::log.info "Creating role/database if needed..." + if $USE_EXTERNAL_DB; then + return 0 + fi - # Create role if it doesn't exist - psql -v ON_ERROR_STOP=1 -h "$DB_HOST_INTERNAL" -p "$DB_PORT_INTERNAL" -U postgres <