fix: revert public defaults to appdata, flash paths are user-local only

Bootstrap varaverk.cfg default and conf template default back to
/mnt/user/appdata/Varaverk — safe for USB boot users. Flash paths
(/boot/config/plugins/varaverk) are set in the user's gitignored
personal configs and don't affect public installs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gmer4Lfe
2026-05-31 13:36:06 -04:00
co-authored by Claude Sonnet 4.6
parent ad1890109a
commit 5234b79210
2 changed files with 7 additions and 4 deletions
+4 -1
View File
@@ -87,9 +87,12 @@ SCRIPTS_DIR="$CFG_DIR"
CONF_DIR="$SCRIPTS_DIR/Configurations"
# Seed varaverk.cfg with defaults (SCRIPTS_DIR + Gitea settings) if not present.
# Default SCRIPTS_DIR is appdata — safe for USB boot users.
# Users with NVMe/SSD boot can change this to /boot/config/plugins/varaverk
# so scripts are available before the array mounts.
if [[ ! -f "$CFG_FILE" ]]; then
cat > "$CFG_FILE" <<'CFGEOF'
SCRIPTS_DIR="/boot/config/plugins/varaverk"
SCRIPTS_DIR="/mnt/user/appdata/Varaverk"
GITEA_CONTAINER="Gitea"
GITEA_REPO_PATH="FailedProxy/Varaverk.git"
GITEA_SSH_KEY="/root/.ssh/unraid_gitea"