fix(install): silence find-permission noise on early best-effort scans
Early in an install the docker-type config isn't loaded yet, so runFileOp falls back to the manager, which can't list the container-owned (751) /docker/containers/ dir. Two best-effort scans then leaked "find: '/docker/containers/': Permission denied" to the install output (x3 per run): scan_files.sh's app_configs scan and the application config reconcile. No app configs exist that early on a fresh install, so the empty result is correct — just suppress the find stderr (the -print0 output still flows). Cosmetic only; doesn't change what's enumerated once the config is loaded. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
parent
9b249b99e3
commit
32c33e27be
@ -9,7 +9,10 @@ checkApplicationsConfigFilesMissingVariables()
|
||||
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')
|
||||
# 2>/dev/null: before the docker-type config loads (early install) runFileOp
|
||||
# falls back to the manager, which can't list the container-owned containers/
|
||||
# dir — harmless "Permission denied" on a best-effort reconcile (no apps yet).
|
||||
done < <(runFileOp find "$containers_dir" -maxdepth 2 -type f -name '*.config' ! -name '*.bak' 2>/dev/null)
|
||||
|
||||
isSuccessful "Application config reconciliation completed."
|
||||
}
|
||||
|
||||
@ -61,7 +61,12 @@ sourceScanFiles()
|
||||
source "$file"
|
||||
# echo "$load_type FILE $file"
|
||||
fi
|
||||
done < <($scan_op find "$folder_dir" -maxdepth 3 -type d \( -name 'resources' \) -prune -o -type f -name "$file_pattern" -print0)
|
||||
# 2>/dev/null: early in an install the docker-type config isn't loaded
|
||||
# yet, so runFileOp falls back to the manager, which can't list the
|
||||
# container-owned containers/ dir — a harmless "Permission denied" on a
|
||||
# best-effort scan (no app configs exist yet). Suppress that noise; the
|
||||
# -print0 output still flows.
|
||||
done < <($scan_op find "$folder_dir" -maxdepth 3 -type d \( -name 'resources' \) -prune -o -type f -name "$file_pattern" -print0 2>/dev/null)
|
||||
fi
|
||||
|
||||
# Load the categories from the file into an array
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user