Derive the pull target from the install location, so master.conf is safe to share between hosts

This commit is contained in:
Gmer4Lfe
2026-08-16 13:54:05 -04:00
parent 98fab394a1
commit 3c24550b19
2 changed files with 27 additions and 7 deletions
+10 -1
View File
@@ -345,7 +345,16 @@
GITEA_CONTAINER="Gitea"
GITEA_REPO_PATH="" # e.g. YourUser/Varaverk.git
GITEA_DOMAIN="" # e.g. git.yourdomain.com — requires NPM + DNS
TARGET_DIR="/mnt/user/appdata/Varaverk"
# Derived, never a literal. This is the directory git_pull_execute.sh pulls into, and it is the
# one host-specific path that used to live in master.conf as a fixed string — which made the
# shared conf unshareable: pushing it to a partner that had migrated its install repointed that
# partner's pull target at the old location, and the next pull built a second copy there while
# the live install ran somewhere else.
#
# SCRIPTS_DIR is exported by load_config.sh from its own location before this file is sourced, so
# this resolves to wherever the install actually is, on every node, in either storage mode, with
# nothing to keep in step. DATA_DIR and STATE_DIR below already worked this way.
TARGET_DIR="${SCRIPTS_DIR}"
GITEA_SSH_KEY="/root/.ssh/unraid_gitea"
SSH_PORT=221 # Gitea SSH port (default 22, Gitea often uses 221/222)
GITEA_HTTP_PORT=3000 # Gitea web/API port — used by gitea_ssh_setup.sh