Fix apply.log missing on first install; keep repo on uninstall

This commit is contained in:
2026-06-16 20:01:55 +00:00
parent e077a87300
commit d0b0e79079
2 changed files with 2 additions and 9 deletions
+2 -1
View File
@@ -103,7 +103,8 @@ fi
# ── Apply now ─────────────────────────────────────────────────────────────────
echo "Applying patches ..."
_log_start=$(wc -c < "$PATCH_DIR/apply.log" 2>/dev/null || echo 0)
_log_start=0
[ -f "$PATCH_DIR/apply.log" ] && _log_start=$(wc -c < "$PATCH_DIR/apply.log")
bash "$PATCH_DIR/patch/apply.sh"
echo ""
echo "Patch log (this run):"
-8
View File
@@ -97,14 +97,6 @@ if [ "$_restore_failed" -eq 1 ]; then
exit 1
fi
# ── Remove patch directory ────────────────────────────────────────────────────
if [ -d "$PATCH_DIR" ]; then
rm -rf "$PATCH_DIR"
echo "Removed $PATCH_DIR"
fi
echo ""
echo "Restarting middlewared ..."
if systemctl restart middlewared; then
echo ""