#!/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."
}
