From 4138903c568800cf1811cda60914b0242e719ccf Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Thu, 11 May 2023 12:13:26 +0800 Subject: [PATCH] Update uninstallpve.sh --- back/uninstallpve.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/back/uninstallpve.sh b/back/uninstallpve.sh index 9f22aaf..554b022 100644 --- a/back/uninstallpve.sh +++ b/back/uninstallpve.sh @@ -7,6 +7,12 @@ iptables -t filter -F service networking restart systemctl restart networking.service rm -rf vm* +pct list | awk 'NR>1{print $1}' | xargs -I {} sh -c 'pct stop {}; pct destroy {}' +rm -rf ct* +iptables -t nat -F +iptables -t filter -F +service networking restart +systemctl restart networking.service systemctl stop pve-cluster.service systemctl stop pvedaemon.service systemctl stop pvestatd.service