refactor(paths): scrub residual /docker references in display text + comments

Audit follow-up — after a full-repo sweep, the only remaining functional /docker
refs are intentional (the legacy compat shim + the env-overridden legacy-safe
backend default). Fix the last user-visible/stale ones:
- config-options.js: backup PATH_MODE 'auto' label no longer hardcodes
  /docker/backups (the path is relocatable) — describes the behaviour instead.
- config.js / setup-detector.js / webui_install_image.sh: refresh comments that
  named /docker to the relocatable system/containers roots.

No behaviour change. Active container app scripts already use $containers_dir;
the remaining /docker hits across the tree are docker-compose.yml filenames,
/var/lib/docker, the docker binary, relative array paths, docs/site, and the
unused/ graveyard.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
librelad 2026-05-25 17:18:46 +01:00
parent 67921eeaf2
commit 16571134b5
4 changed files with 7 additions and 7 deletions

View File

@ -42,7 +42,7 @@ const webuiLoginsConfig = parseConfigFile(path.join(__dirname, '..', '..', 'webu
const webuiLogsConfig = parseConfigFile(path.join(__dirname, '..', '..', 'webui_logs')); const webuiLogsConfig = parseConfigFile(path.join(__dirname, '..', '..', 'webui_logs'));
// Merge: later sources override earlier. webui_logins / webui_logs hold // Merge: later sources override earlier. webui_logins / webui_logs hold
// CFG_WEBUI_* keys generated from /docker/configs/webui/* and bind-mounted // CFG_WEBUI_* keys generated from the system configs/webui/* and bind-mounted
// in via libreportal's compose. // in via libreportal's compose.
const fileConfig = { ...libreportalConfig, ...webuiLoginsConfig, ...webuiLogsConfig }; const fileConfig = { ...libreportalConfig, ...webuiLoginsConfig, ...webuiLogsConfig };

View File

@ -257,7 +257,7 @@ class ConfigOptions {
{ value: 'rclone', label: 'rclone' } { value: 'rclone', label: 'rclone' }
], ],
PATH_MODE: [ PATH_MODE: [
{ value: 'auto', label: 'Automatic (/docker/backups/<id>)' }, { value: 'auto', label: 'Automatic (backups root, one subfolder per location)' },
{ value: 'custom', label: 'Custom path' } { value: 'custom', label: 'Custom path' }
], ],
ENGINE: [ ENGINE: [

View File

@ -60,7 +60,7 @@ class SetupDetector {
} }
// Detect if this is first-time setup. Source of truth is the server-side // Detect if this is first-time setup. Source of truth is the server-side
// lock file at /docker/containers/libreportal/frontend/data/.setup_complete // lock file at <containers-root>/libreportal/frontend/data/.setup_complete
// — that's what the bash setupApply function creates after a successful // — that's what the bash setupApply function creates after a successful
// wizard run. localStorage is no longer used because per-browser state // wizard run. localStorage is no longer used because per-browser state
// gives wrong answers (different browsers would each see "first install"). // gives wrong answers (different browsers would each see "first install").

View File

@ -6,11 +6,11 @@ installLibrePortalImageWebUI()
isNotice "Building the LibrePortal WebUI Docker image..." isNotice "Building the LibrePortal WebUI Docker image..."
# The copy below writes into the dockerinstall-owned containers/ dir. On a # The copy below writes into the dockerinstall-owned containers root. On a
# fresh install the general traversal/ownership reconcile runs LATER, so at # fresh install the general traversal/ownership reconcile runs LATER, so at
# this point /docker is still 750 (untraversable by the container user) and # this point the system root is still 750 (untraversable by the container user)
# containers/ may still be manager-owned — the copy would fail. Establish # and the containers root may still be manager-owned — the copy would fail.
# traversal (+x on /docker) and containers/ ownership FIRST. # Establish traversal + containers-root ownership FIRST.
fixFolderPermissions fixFolderPermissions
local result=$(copyFolder "$install_containers_dir/libreportal" "$containers_dir" "$sudo_user_name") local result=$(copyFolder "$install_containers_dir/libreportal" "$containers_dir" "$sudo_user_name")