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:
parent
67921eeaf2
commit
16571134b5
@ -42,7 +42,7 @@ const webuiLoginsConfig = parseConfigFile(path.join(__dirname, '..', '..', 'webu
|
||||
const webuiLogsConfig = parseConfigFile(path.join(__dirname, '..', '..', 'webui_logs'));
|
||||
|
||||
// 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.
|
||||
const fileConfig = { ...libreportalConfig, ...webuiLoginsConfig, ...webuiLogsConfig };
|
||||
|
||||
|
||||
@ -257,7 +257,7 @@ class ConfigOptions {
|
||||
{ value: 'rclone', label: 'rclone' }
|
||||
],
|
||||
PATH_MODE: [
|
||||
{ value: 'auto', label: 'Automatic (/docker/backups/<id>)' },
|
||||
{ value: 'auto', label: 'Automatic (backups root, one subfolder per location)' },
|
||||
{ value: 'custom', label: 'Custom path' }
|
||||
],
|
||||
ENGINE: [
|
||||
|
||||
@ -60,7 +60,7 @@ class SetupDetector {
|
||||
}
|
||||
|
||||
// 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
|
||||
// wizard run. localStorage is no longer used because per-browser state
|
||||
// gives wrong answers (different browsers would each see "first install").
|
||||
|
||||
@ -6,11 +6,11 @@ installLibrePortalImageWebUI()
|
||||
|
||||
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
|
||||
# this point /docker is still 750 (untraversable by the container user) and
|
||||
# containers/ may still be manager-owned — the copy would fail. Establish
|
||||
# traversal (+x on /docker) and containers/ ownership FIRST.
|
||||
# this point the system root is still 750 (untraversable by the container user)
|
||||
# and the containers root may still be manager-owned — the copy would fail.
|
||||
# Establish traversal + containers-root ownership FIRST.
|
||||
fixFolderPermissions
|
||||
|
||||
local result=$(copyFolder "$install_containers_dir/libreportal" "$containers_dir" "$sudo_user_name")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user