diff --git a/install.sh b/install.sh index 7f22e88..343448e 100755 --- a/install.sh +++ b/install.sh @@ -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):" diff --git a/uninstall.sh b/uninstall.sh index aa55e3d..7c29431 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -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 ""