Skip to content

fix: chown the correct index.html path (dist/browser) — regression of #124 - #127

Merged
thespad merged 1 commit into
linuxserver:masterfrom
OKDaG:fix/baseurl-index-html-browser-path
Jun 6, 2026
Merged

fix: chown the correct index.html path (dist/browser) — regression of #124#127
thespad merged 1 commit into
linuxserver:masterfrom
OKDaG:fix/baseurl-index-html-browser-path

Conversation

@OKDaG

@OKDaG OKDaG commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Description

The init script chowns the wrong index.html path, so Ombi cannot apply BASE_URL and the UI shows a blank page behind a sub-path reverse proxy.

The Angular build output moved into a browser/ subfolder; the file Ombi rewrites at startup lives at /app/ombi/ClientApp/dist/browser/index.html. PR #124 already fixed this, but commit 32375bf ("Fix subfolder permissions fix", which added the LSIO_READ_ONLY_FS guard) reintroduced the old dist/index.html path. As a result the real file is never chowned to abc, the <base href> is never updated, and assets 404 from the domain root.

This restores the browser/ path inside the existing read-only guard — keeping that guard intact.

 if [[ -z ${LSIO_READ_ONLY_FS} ]]; then
-    lsiown abc:abc /app/ombi/ClientApp/dist/index.html
+    lsiown abc:abc /app/ombi/ClientApp/dist/browser/index.html
 fi

Benefits of this PR and context

Fixes the blank-page / "unauthorized access to index.html" startup error for sub-path (BASE_URL) deployments on current images.

Closes #126

How Has This Been Tested?

Verified against the published images: in 4.53.5 (working) index.html sits at dist/index.html; in 4.53.10 it is at dist/browser/index.html while the chown still targets dist/index.html, leaving the file owned by 1001:1001 and unwritable by the abc (PUID) user.

Source / References

Type of change

  • Bug fix (non-breaking change which fixes an issue)

The Angular build output moved into a browser/ subfolder, so the
index.html that Ombi rewrites for BASE_URL lives at
dist/browser/index.html. Commit 32375bf reintroduced the pre-linuxserver#124
path (dist/index.html) while adding the LSIO_READ_ONLY_FS guard, so
the real file is never chowned to abc and Ombi cannot apply BASE_URL
(blank page behind a subpath reverse proxy).

Restore the browser/ path inside the read-only guard.

Closes linuxserver#126

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this pull request! Be sure to follow the pull request template!

@github-project-automation github-project-automation Bot moved this from PRs to PRs Approved in Issue & PR Tracker Jun 6, 2026
@thespad
thespad merged commit d1ac9e5 into linuxserver:master Jun 6, 2026
3 checks passed
@LinuxServer-CI LinuxServer-CI moved this from PRs Approved to Done in Issue & PR Tracker Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[BUG] BASE_URL not applied (white page) in 4.53.10 — init chowns wrong index.html path, regression of #124

3 participants