Fix apply.log missing on first install; keep repo on uninstall
This commit is contained in:
+2
-1
@@ -103,7 +103,8 @@ fi
|
|||||||
# ── Apply now ─────────────────────────────────────────────────────────────────
|
# ── Apply now ─────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
echo "Applying patches ..."
|
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"
|
bash "$PATCH_DIR/patch/apply.sh"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Patch log (this run):"
|
echo "Patch log (this run):"
|
||||||
|
|||||||
@@ -97,14 +97,6 @@ if [ "$_restore_failed" -eq 1 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ── Remove patch directory ────────────────────────────────────────────────────
|
|
||||||
|
|
||||||
if [ -d "$PATCH_DIR" ]; then
|
|
||||||
rm -rf "$PATCH_DIR"
|
|
||||||
echo "Removed $PATCH_DIR"
|
|
||||||
fi
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "Restarting middlewared ..."
|
echo "Restarting middlewared ..."
|
||||||
if systemctl restart middlewared; then
|
if systemctl restart middlewared; then
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user