remove incomplete armbian netplan file

This commit is contained in:
Aaron Murray 2022-09-12 15:56:00 -05:00
parent 80b7c6e490
commit f8e4ad5ec1

View File

@ -13,7 +13,7 @@
# https://github.com/armbian/config/blob/master/debian-software
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
#
# version: 1.6.21
# version: 1.6.22
#
if [[ $(id -u) -ne 0 ]]; then
@ -520,6 +520,13 @@ if [ ${skipNet} -ne 1 ]; then
rm -fv "${defLink}"
fi
# remove armbian netplan file if found
anp="/etc/netplan/armbian-default.yaml"
if [ -e "${anp}" ]; then
echo "Removing Armbian netplan file..."
rm -fv "${anp}"
fi
echo "Removing network-manager and dhcpcd5 ..."
apt-get -y --autoremove purge network-manager dhcpcd5