always remove armbian-default yaml file since it is incomplete on a fresh install

This commit is contained in:
Aaron Murray 2022-10-03 06:30:09 -05:00
parent d400a86e1b
commit d9806d8d00

16
install
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.24
# version: 1.6.25
#
if [[ $(id -u) -ne 0 ]]; then
@ -211,6 +211,13 @@ if grep -rq raspberrypi.org /etc/apt/*; then
truncate -s 0 "${vsCodeList}"
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
dpkg -P udisks2
echo "Install prerequisites..."
@ -520,13 +527,6 @@ 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