From a0383bb10c927a4c6099d4738e5ffb03d71d5899 Mon Sep 17 00:00:00 2001 From: spiritLHLS <103393591+spiritLHLS@users.noreply.github.com> Date: Thu, 11 May 2023 16:08:31 +0800 Subject: [PATCH] Update uninstallpve.sh --- back/uninstallpve.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/back/uninstallpve.sh b/back/uninstallpve.sh index 341a458..8ed75b7 100644 --- a/back/uninstallpve.sh +++ b/back/uninstallpve.sh @@ -26,8 +26,11 @@ apt-get remove --purge -y open-iscsi touch '/please-remove-proxmox-ve' apt-get purge proxmox-ve -y apt-get autoremove -y -# dpkg --configure -a -# apt-get install -f +sudo dpkg --configure -a +sudo apt-get install -f +sudo dpkg --remove --force-remove-reinstreq initramfs-tools +sudo apt-get purge initramfs-tools + if [ -f /etc/network/interfaces.d/50-cloud-init.bak ]; then chattr -i /etc/network/interfaces.d/50-cloud-init mv /etc/network/interfaces.d/50-cloud-init.bak /etc/network/interfaces.d/50-cloud-init