From fb1f2761d7b67cd49f6b26a507c7b41964a3dc69 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 16 Jul 2025 21:15:48 +0000 Subject: [PATCH] GitHub bot: fix linting issues (nobuild) --- ente/rootfs/etc/cont-init.d/99-run.sh | 32 +++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/ente/rootfs/etc/cont-init.d/99-run.sh b/ente/rootfs/etc/cont-init.d/99-run.sh index 64cf2c56e..a3599ec42 100755 --- a/ente/rootfs/etc/cont-init.d/99-run.sh +++ b/ente/rootfs/etc/cont-init.d/99-run.sh @@ -151,25 +151,25 @@ wait_minio_ready_and_bucket() { } start_web() { - if $DISABLE_WEB_UI; then - bashio::log.info "Web UI disabled." - return 0 - fi + if $DISABLE_WEB_UI; then + bashio::log.info "Web UI disabled." + return 0 + fi - # Prepare static assets with actual origins (does safe sed replacements). - ENTE_API_ORIGIN="${ENTE_API_ORIGIN:-http://[HOST]:[PORT:8080]}" - ENTE_ALBUMS_ORIGIN="${ENTE_ALBUMS_ORIGIN:-${ENTE_API_ORIGIN}}" - export ENTE_API_ORIGIN ENTE_ALBUMS_ORIGIN - /usr/local/bin/ente-web-prepare || bashio::log.warning "Web env substitution step returned non‑zero; continuing." + # Prepare static assets with actual origins (does safe sed replacements). + ENTE_API_ORIGIN="${ENTE_API_ORIGIN:-http://[HOST]:[PORT:8080]}" + ENTE_ALBUMS_ORIGIN="${ENTE_ALBUMS_ORIGIN:-${ENTE_API_ORIGIN}}" + export ENTE_API_ORIGIN ENTE_ALBUMS_ORIGIN + /usr/local/bin/ente-web-prepare || bashio::log.warning "Web env substitution step returned non‑zero; continuing." - # nginx expects runtime dirs - mkdir -p /run/nginx - # log dir - mkdir -p /var/log/nginx + # nginx expects runtime dirs + mkdir -p /run/nginx + # log dir + mkdir -p /var/log/nginx - bashio::log.info "Starting Ente web (nginx, ports 3000‑3004)..." - nginx -c /etc/ente-web/nginx.conf -g 'daemon off;' & - WEB_PID=$! + bashio::log.info "Starting Ente web (nginx, ports 3000‑3004)..." + nginx -c /etc/ente-web/nginx.conf -g 'daemon off;' & + WEB_PID=$! } start_museum_foreground() {