req: internal NVMe boot required, all paths consolidated on flash
Plugin folder /boot/config/plugins/varaverk is the single home for scripts, data, and state. Available at boot before array mounts. USB boot is not a supported configuration. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
5234b79210
commit
da699b54fa
@@ -111,14 +111,15 @@
|
|||||||
# ==============================================================================================
|
# ==============================================================================================
|
||||||
# ── SHARED HOST CONFIGURATION ─────────────────────────────────────────────────────────────────
|
# ── SHARED HOST CONFIGURATION ─────────────────────────────────────────────────────────────────
|
||||||
# ==============================================================================================
|
# ==============================================================================================
|
||||||
# All Varaverk persistent data lives under /mnt/user/appdata/Varaverk/.
|
# Requirement: internal NVMe/SSD boot drive. Everything lives in the plugin folder on flash —
|
||||||
|
# scripts, state, and data are all available before the array mounts.
|
||||||
# Both directories are created automatically if they don't exist.
|
# Both directories are created automatically if they don't exist.
|
||||||
#
|
#
|
||||||
# DATA_DIR — historical logs, statistics, discovery histories, blocklists
|
# DATA_DIR — historical logs, statistics, discovery histories, blocklists
|
||||||
# STATE_DIR — runtime state files for all scripts (watchdogs, fallback, transcode, etc.)
|
# STATE_DIR — runtime state files for all scripts (watchdogs, fallback, transcode, etc.)
|
||||||
# Requirement: ALL state files MUST use $STATE_DIR. No /tmp, no /boot/config.
|
# Requirement: ALL state files MUST use $STATE_DIR. No /tmp, no /boot/config root.
|
||||||
DATA_DIR="/mnt/user/appdata/Varaverk/data"
|
DATA_DIR="/boot/config/plugins/varaverk/data"
|
||||||
STATE_DIR="/mnt/user/appdata/Varaverk/State_Files"
|
STATE_DIR="/boot/config/plugins/varaverk/State_Files"
|
||||||
|
|
||||||
# ── Version Parity ──
|
# ── Version Parity ──
|
||||||
# Controls behaviour when local and remote unRAID versions differ.
|
# Controls behaviour when local and remote unRAID versions differ.
|
||||||
@@ -260,7 +261,7 @@
|
|||||||
GITEA_CONTAINER="Gitea"
|
GITEA_CONTAINER="Gitea"
|
||||||
GITEA_REPO_PATH="FailedProxy/Varaverk.git"
|
GITEA_REPO_PATH="FailedProxy/Varaverk.git"
|
||||||
GITEA_DOMAIN="" # e.g. git.yourdomain.com — requires NPM + DNS
|
GITEA_DOMAIN="" # e.g. git.yourdomain.com — requires NPM + DNS
|
||||||
TARGET_DIR="/mnt/user/appdata/Varaverk"
|
TARGET_DIR="/boot/config/plugins/varaverk"
|
||||||
GITEA_SSH_KEY="/root/.ssh/unraid_gitea"
|
GITEA_SSH_KEY="/root/.ssh/unraid_gitea"
|
||||||
SSH_PORT=221 # Gitea SSH port (default 22, Gitea often uses 221/222)
|
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
|
GITEA_HTTP_PORT=3000 # Gitea web/API port — used by gitea_ssh_setup.sh
|
||||||
|
|||||||
+2
-4
@@ -87,12 +87,10 @@ SCRIPTS_DIR="$CFG_DIR"
|
|||||||
CONF_DIR="$SCRIPTS_DIR/Configurations"
|
CONF_DIR="$SCRIPTS_DIR/Configurations"
|
||||||
|
|
||||||
# Seed varaverk.cfg with defaults (SCRIPTS_DIR + Gitea settings) if not present.
|
# Seed varaverk.cfg with defaults (SCRIPTS_DIR + Gitea settings) if not present.
|
||||||
# Default SCRIPTS_DIR is appdata — safe for USB boot users.
|
# Requires internal NVMe/SSD boot — scripts live on flash, available before array mounts.
|
||||||
# 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
|
if [[ ! -f "$CFG_FILE" ]]; then
|
||||||
cat > "$CFG_FILE" <<'CFGEOF'
|
cat > "$CFG_FILE" <<'CFGEOF'
|
||||||
SCRIPTS_DIR="/mnt/user/appdata/Varaverk"
|
SCRIPTS_DIR="/boot/config/plugins/varaverk"
|
||||||
GITEA_CONTAINER="Gitea"
|
GITEA_CONTAINER="Gitea"
|
||||||
GITEA_REPO_PATH="FailedProxy/Varaverk.git"
|
GITEA_REPO_PATH="FailedProxy/Varaverk.git"
|
||||||
GITEA_SSH_KEY="/root/.ssh/unraid_gitea"
|
GITEA_SSH_KEY="/root/.ssh/unraid_gitea"
|
||||||
|
|||||||
Reference in New Issue
Block a user