diff --git a/Media/arr_sync.sh b/Media/arr_sync.sh index 441d488..2658707 100755 --- a/Media/arr_sync.sh +++ b/Media/arr_sync.sh @@ -38,7 +38,7 @@ # ============================================================================================== # # Remote API Access — Cache-First, SSH Fallback -# If conf_sync.sh has populated /tmp/.vv/config/cached/.confs/ and +# If conf_sync.sh has populated /tmp/.cache/vv/d/ and # load_config.sh has sourced it, HOST*__API_KEY vars are available # in the environment. Remote functions use them to call the arr API # directly over Tailscale (no SSH, no remote shell). If the cached key diff --git a/System_Essentials/conf_cache_restore.sh b/System_Essentials/conf_cache_restore.sh index f89e4fb..f973389 100755 --- a/System_Essentials/conf_cache_restore.sh +++ b/System_Essentials/conf_cache_restore.sh @@ -28,8 +28,8 @@ source "$SCRIPT_DIR/../load_config.sh" parse_args "$@" detect_hosts -RAM_CACHE="/tmp/.vv/config/cached/.confs" -SAVE_DIR="/boot/config/varaverk/conf_bak" +RAM_CACHE="/tmp/.cache/vv/d" +SAVE_DIR="/boot/config/.cache/vv/d" [[ "$DRY_RUN" == true ]] && warn "DRY RUN — no changes will be made" diff --git a/System_Essentials/conf_cache_save.sh b/System_Essentials/conf_cache_save.sh index f5c9fdd..c0adcd4 100755 --- a/System_Essentials/conf_cache_save.sh +++ b/System_Essentials/conf_cache_save.sh @@ -5,7 +5,7 @@ # # PURPOSE # ───────────────────────────────────────────────────────────────────────────── -# Snapshots the partner conf RAM cache to /boot/config/varaverk/conf_bak/ on +# Snapshots the partner conf RAM cache to /boot/config/.cache/vv/d/ on # array stop. Survives reboot. Used by conf_cache_restore.sh at next array start # to reload partner vars into RAM when the partner is unreachable at boot time. # @@ -24,8 +24,8 @@ source "$SCRIPT_DIR/../load_config.sh" parse_args "$@" detect_hosts -RAM_CACHE="/tmp/.vv/config/cached/.confs" -SAVE_DIR="/boot/config/varaverk/conf_bak" +RAM_CACHE="/tmp/.cache/vv/d" +SAVE_DIR="/boot/config/.cache/vv/d" [[ "$DRY_RUN" == true ]] && warn "DRY RUN — no files will be written" diff --git a/System_Essentials/conf_sync.sh b/System_Essentials/conf_sync.sh index c68ea6a..0debb59 100755 --- a/System_Essentials/conf_sync.sh +++ b/System_Essentials/conf_sync.sh @@ -5,7 +5,7 @@ # # PURPOSE # ───────────────────────────────────────────────────────────────────────────── -# Maintains a RAM-resident conf cache at /tmp/.vv/config/cached/.confs/. +# Maintains a RAM-resident conf cache at /tmp/.cache/vv/d/. # Credentials and partner keys live in RAM only — never on disk across hosts. # # On array start (default / --array-start): @@ -54,7 +54,7 @@ if [[ "${CONF_SYNC_ENABLED:-true}" == false ]]; then exit 0 fi -CACHE_DIR="/tmp/.vv/config/cached/.confs" +CACHE_DIR="/tmp/.cache/vv/d" MY_CONF="$SCRIPTS_ROOT/Configurations/${MY_ID,,}.conf" SSH_TIMEOUT=10 @@ -121,7 +121,7 @@ for host_var in $(compgen -v | grep -E '^HOST[0-9]+$' | sort); do fi if [[ "$DRY_RUN" == true ]]; then - warn "DRY RUN — would push ${MY_ID,,}.conf → $partner_host:/tmp/.vv/config/cached/.confs/" + warn "DRY RUN — would push ${MY_ID,,}.conf → $partner_host:/tmp/.cache/vv/d/" continue fi diff --git a/load_config.sh b/load_config.sh index 36f78be..a0e0446 100755 --- a/load_config.sh +++ b/load_config.sh @@ -99,12 +99,12 @@ fi # ━━━ Source partner confs from /tmp cache ━━━ -# conf_sync.sh pulls partner host*.conf files into /tmp/.vv/config/cached/.confs/ +# conf_sync.sh pulls partner host*.conf files into /tmp/.cache/vv/d/ # on array start and after any conf save. Sourcing them here makes partner vars # (HOST2_*, HOST3_*, …) available without committing credentials to the git repo # or violating sparse checkout — partner confs live in RAM only, cleared on reboot. # Confs already loaded from disk are skipped — disk copy is authoritative. - _VV_CONF_CACHE="/tmp/.vv/config/cached/.confs" + _VV_CONF_CACHE="/tmp/.cache/vv/d" if [[ -d "$_VV_CONF_CACHE" ]]; then while IFS= read -r _conf; do [[ -f "$_conf" ]] || continue