Apply system then user configuration files for a domain.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_cfg_domain_apply

Purpose

Apply system then user configuration files for a domain.

Description

Creates missing configuration skeletons where permitted, then loads system-scope followed by user-scope values. Does not load the default values itself.

Arguments

  • $1 — Domain label.
  • $2 — System config path.
  • $3 — User config path.
  • $4 — Name of variable-specification array.
  • $5 — Optional mode (defaults to script).

Side effects

May create missing files and updates configuration variables in the current shell.

Returns

0 when configuration files were processed; 1 for invalid input or skeleton-creation failure.

Usage

  sgnd_cfg_domain_apply Framework "$SGND_SYSCFG_FILE" "$SGND_USRCFG_FILE" SGND_SCRIPT_GLOBALS script