Cleanup any Netplan configuration

Issue #87
pull/100/merge
Vlastimil Holer 7 years ago
parent ccfe4c45f8
commit 8f74136a5c
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -74,6 +74,7 @@ if [ -d /etc/network ]; then
# Prepare network files # Prepare network files
cp /etc/network/interfaces /etc/network/interfaces.$(date "+%s") cp /etc/network/interfaces /etc/network/interfaces.$(date "+%s")
rm -rf /etc/network/interfaces.d rm -rf /etc/network/interfaces.d
rm -rf /etc/netplan/*
if [ "${NETWORK_EC2}" = 'yes' ]; then if [ "${NETWORK_EC2}" = 'yes' ]; then
cat > /etc/network/interfaces <<EOT cat > /etc/network/interfaces <<EOT

Loading…
Cancel
Save