always remove armbian-default yaml file since it is incomplete on a fresh install
This commit is contained in:
parent
d400a86e1b
commit
d9806d8d00
16
install
16
install
@ -13,7 +13,7 @@
|
|||||||
# https://github.com/armbian/config/blob/master/debian-software
|
# https://github.com/armbian/config/blob/master/debian-software
|
||||||
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
|
# 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
|
if [[ $(id -u) -ne 0 ]]; then
|
||||||
@ -211,6 +211,13 @@ if grep -rq raspberrypi.org /etc/apt/*; then
|
|||||||
truncate -s 0 "${vsCodeList}"
|
truncate -s 0 "${vsCodeList}"
|
||||||
fi
|
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
|
dpkg -P udisks2
|
||||||
|
|
||||||
echo "Install prerequisites..."
|
echo "Install prerequisites..."
|
||||||
@ -520,13 +527,6 @@ if [ ${skipNet} -ne 1 ]; then
|
|||||||
rm -fv "${defLink}"
|
rm -fv "${defLink}"
|
||||||
fi
|
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 ..."
|
echo "Removing network-manager and dhcpcd5 ..."
|
||||||
apt-get -y --autoremove purge network-manager dhcpcd5
|
apt-get -y --autoremove purge network-manager dhcpcd5
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user