#!/bin/bash # Reconcile each application's config ($containers_dir//.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" # 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." }