Add storage mode migration: internal NVMe vs USB flash, Settings tab, fix hardcoded /boot/ paths

This commit is contained in:
Gmer4Lfe
2026-06-03 17:40:35 -04:00
parent e9ea67ec14
commit 0cb429222a
10 changed files with 661 additions and 7 deletions
+3 -1
View File
@@ -44,7 +44,9 @@ if [[ "$MANUAL" == false && -f "$MANUAL_TS_FILE" ]]; then
# Only suppress for interval-based crons (*/N * * * *).
# Static schedules like "30 2 * * 0" run at their appointed time and are never suppressed.
INTERVAL=0
SCHEDULE_FILE="/boot/config/plugins/varaverk/schedule.json"
_VV_CFG="/boot/config/plugins/varaverk/varaverk.cfg"
_SCRIPTS_DIR=$(grep -m1 '^SCRIPTS_DIR' "$_VV_CFG" 2>/dev/null | cut -d= -f2 | tr -d '"'"'" | tr -d '[:space:]')
SCHEDULE_FILE="${_SCRIPTS_DIR:-/boot/config/plugins/varaverk}/schedule.json"
if [[ -f "$SCHEDULE_FILE" ]]; then
CRON_EXPR=$(php -r "
\$s = json_decode(file_get_contents('$SCHEDULE_FILE'), true) ?: [];