diff --git a/ente/rootfs/etc/cont-init.d/99-run.sh b/ente/rootfs/etc/cont-init.d/99-run.sh index 7b8f2af72..beb06d09d 100755 --- a/ente/rootfs/etc/cont-init.d/99-run.sh +++ b/ente/rootfs/etc/cont-init.d/99-run.sh @@ -109,20 +109,24 @@ bootstrap_internal_db() { fi bashio::log.info "Creating role/database if needed..." - # Use psql via local socket (faster, avoids password) + # Create role if it doesn't exist psql -v ON_ERROR_STOP=1 -h "$DB_HOST_INTERNAL" -p "$DB_PORT_INTERNAL" -U postgres <