Consolidate all paths to plugin flash dir, fix watchdog 7.3 triggers
- Move SCRIPTS_DIR/DATA_DIR/STATE_DIR from appdata to /boot/config/plugins/varaverk - All state files now in STATE_DIR (no more /tmp or /boot/config root writes) - Bootstrap: Gitea-first clone with GitHub fallback, no array dependency - varaverk.cfg seeded with Gitea connection settings - .gitignore: add State_Files/, varaverk.cfg, varaverk-*.txz - Partnership/transcode/fallback scripts use STATE_DIR variables - PHP config.php: DATA_DIR/STATE_DIR constants, VV_SETUP_STATE_FILE dynamic - deploy.sh PROD_ROOT updated to plugin flash dir Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
9191a54637
commit
fb0530deba
@@ -1246,11 +1246,14 @@ get_rsync_opts() {
|
||||
|
||||
LOCK_DIR="/tmp/unraid_locks"
|
||||
|
||||
# Ensure DATA_DIR exists — created here so every script that sources common.sh
|
||||
# can safely write to it without checking first
|
||||
# Ensure DATA_DIR and STATE_DIR exist — created here so every script that sources common.sh
|
||||
# can safely write to either without checking first.
|
||||
if [[ -n "${DATA_DIR:-}" ]] && [[ ! -d "$DATA_DIR" ]]; then
|
||||
mkdir -p "$DATA_DIR" 2>/dev/null || true
|
||||
fi
|
||||
if [[ -n "${STATE_DIR:-}" ]] && [[ ! -d "$STATE_DIR" ]]; then
|
||||
mkdir -p "$STATE_DIR" 2>/dev/null || true
|
||||
fi
|
||||
|
||||
RSYNC_COUNT_FILE="$LOCK_DIR/rsync_active_count"
|
||||
RSYNC_MAX_CONCURRENT=3
|
||||
|
||||
Reference in New Issue
Block a user