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 <