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
+13
View File
@@ -255,6 +255,19 @@ else
log "Setting executable permissions on all .sh files..."
find "$TARGET_DIR" -type f -name "*.sh" -exec chmod +x {} \;
echo " Permissions set on .sh files"
# ── Flash mode: sync Plugin/ to /boot/ so the webUI picks up updates ─────
# In flash mode SCRIPTS_DIR is in appdata — Plugin/ lives in the repo there
# but Unraid serves PHP from /boot/. Sync after every pull to keep them in step.
if [[ "$TARGET_DIR" != "/boot/config/plugins/varaverk" ]]; then
echo ""
echo "━━━ $ICON_SYNC Flash mode: sync Plugin/ → /boot/ ━━━"
if rsync -a --delete "$TARGET_DIR/Plugin/" "/boot/config/plugins/varaverk/Plugin/" 2>/dev/null; then
echo " Plugin/ synced to /boot/ ✅"
else
warn "Plugin/ sync to /boot/ failed — webUI may be stale until next pull"
fi
fi
fi
END=$(date +%s)