Update uninstallpve.sh

This commit is contained in:
spiritLHLS 2023-05-11 16:08:31 +08:00 committed by GitHub
parent 5ef78ed4d5
commit a0383bb10c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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