Put the header sections back in the order the other 116 scripts use
This commit is contained in:
+11
-11
@@ -20,6 +20,16 @@
|
||||
# 4. Sources common.sh — shared functions: detect_hosts, logging, notifications, etc.
|
||||
# 5. Sources Plugin/<platform>/adapter.sh — platform_*() functions for OS-specific ops
|
||||
#
|
||||
# ==============================================================================================
|
||||
# DESIGN PRINCIPLES
|
||||
# ==============================================================================================
|
||||
#
|
||||
# Zero-Script Expansion
|
||||
# Without this loader, adding a new server required updating every script to
|
||||
# source the new host conf. With this loader: create host3.conf in the repo,
|
||||
# commit and push — all servers auto-discover it on next git pull. No script
|
||||
# changes required.
|
||||
#
|
||||
# USAGE IN SCRIPTS
|
||||
# Scripts in subdirectories (Rsync/, Docker_Essentials/ etc.):
|
||||
# SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
@@ -96,16 +106,6 @@
|
||||
# called by the script itself afterwards.
|
||||
#
|
||||
# ==============================================================================================
|
||||
# DESIGN PRINCIPLES
|
||||
# ==============================================================================================
|
||||
#
|
||||
# Zero-Script Expansion
|
||||
# Without this loader, adding a new server required updating every script to
|
||||
# source the new host conf. With this loader: create host3.conf in the repo,
|
||||
# commit and push — all servers auto-discover it on next git pull. No script
|
||||
# changes required.
|
||||
#
|
||||
# ==============================================================================================
|
||||
|
||||
# ━━━ Locate config root ━━━
|
||||
# load_config.sh always lives in the repo root.
|
||||
@@ -220,4 +220,4 @@
|
||||
AI_TOKEN_CACHE_DIR AI_JOB_DIR DOCKER_JOB_DIR
|
||||
|
||||
# ━━━ Cleanup ━━━
|
||||
unset _conf _host_confs_loaded _adapter LOAD_CONFIG_DIR
|
||||
unset _conf _host_confs_loaded _adapter LOAD_CONFIG_DIR
|
||||
|
||||
Reference in New Issue
Block a user