From a0157c0ac08cc97add1ff5e41ad5d8a457b2d9b9 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 16 Jul 2025 11:05:02 +0200 Subject: [PATCH] Update 99-run.sh --- ente/rootfs/etc/cont-init.d/99-run.sh | 62 --------------------------- 1 file changed, 62 deletions(-) diff --git a/ente/rootfs/etc/cont-init.d/99-run.sh b/ente/rootfs/etc/cont-init.d/99-run.sh index 306551c0c..5c841bdb9 100644 --- a/ente/rootfs/etc/cont-init.d/99-run.sh +++ b/ente/rootfs/etc/cont-init.d/99-run.sh @@ -24,65 +24,3 @@ for dir in /etc/services.d/*; do bashio::log.fatal "No run file found in $dir" fi done - -######################### -# Internal db bootstrap # -######################### - -#Default values for internal -DB_NAME="ente_db" -DB_USER="pguser" -DB_PASS="ente" - -if bashio::config.true 'USE_EXTERNAL_DB'; then - bashio::log.info "External DB in use; skipping internal Postgres bootstrap." - DB_USER="$(bashio::config 'DB_USERNAME')" - DB_PASS="$(bashio::config 'DB_PASSWORD')" - DB_NAME="$(bashio::config 'DB_DATABASE_NAME')" -fi - -bashio::log.info "Postgres-init: waiting for local Postgres..." -until pg_isready -q -h 127.0.0.1 -p 5432 -U postgres; do - sleep 1 -done - -bashio::log.info "Postgres-init: creating role/database if missing..." -# psql search_path safe quoting using dollar-quoted strings for password -psql -v ON_ERROR_STOP=1 -h 127.0.0.1 -p 5432 -U postgres </dev/null; do - sleep 1 -done - -bashio::log.info "MinIO-init: ensuring bucket ${S3_BUCKET}..." -/usr/local/bin/mc mb -p "h0/${S3_BUCKET}" || true - -bashio::log.info "MinIO-init: done." - -sleep infinity