Reverts the 2>/dev/null band-aids and fixes the root cause. The manager-run install boot scans app configs under /docker/containers AS the container user (runFileOp). But init.sh's initFolders creates that dir manager-owned, and the handover to the container user happened later (start_preinstall), AFTER the boot scans — so the scans ran as the container user against a dir it didn't own yet: "find: '/docker/containers/': Permission denied" (cosmetic; the dir is empty that early, but it's the wrong ownership at the wrong time). Add initContainerLayer() to init.sh's root phase (after initGIT + initUpdateConfigs, before the manager-run handoff): rootless-only, it creates the docker-install user if missing and chowns /docker/containers to it (751). The later rootless setup is now idempotent — it finds the user existing and just (re)asserts its password + daemon config (moved updateDockerInstallPassword out of the create-only branch). Rooted is unaffected (containers stay manager-owned, which the manager reads). Result: by the time the boot scans run, /docker/containers is owned by the user doing the scanning — no permission error, nothing suppressed. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
16 lines
595 B
Bash
Executable File
16 lines
595 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Reconcile each application's config ($containers_dir/<app>/<app>.config) against
|
|
# its freshly-cloned template ($install_containers_dir). See reconcileConfigFile.
|
|
checkApplicationsConfigFilesMissingVariables()
|
|
{
|
|
local live app remote
|
|
while IFS= read -r live; do
|
|
app=$(basename "$live" .config)
|
|
remote="$install_containers_dir$app/$app.config"
|
|
reconcileConfigFile "$live" "$remote"
|
|
done < <(runFileOp find "$containers_dir" -maxdepth 2 -type f -name '*.config' ! -name '*.bak')
|
|
|
|
isSuccessful "Application config reconciliation completed."
|
|
}
|