Paste #xmFYlAoCdY1cOlu3G4Ds

diff --git a/debian/network-manager.postinst b/debian/network-manager.postinst
index a1588d5a..cb518224 100644
a/debian/network-manager.postinst
b/debian/network-manager.postinst
49 49 mkdir -p /etc/NetworkManager/conf.d || true
50 50 # for old versions, override the global config with a null config,
51 51 # but only if the netplan config has not been modified by an user.
52 if find /etc/netplan -name "*.yaml" | wc -l | grep -qc 0; then
52 if [ ! -d /etc/netplan ] || find /etc/netplan -name "*.yaml" | wc -l | grep -qc 0; then
53 53 touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
54 54 fi
55 55 fi