Skip to content
Snippets Groups Projects
Commit 4476a771 authored by Florent Thiery's avatar Florent Thiery
Browse files

only remove resolv.conf if systemd-resolved is still there

parent 54622e02
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ def setup(interactive=False):
'apt purge --auto-remove -y netplan.io',
'mkdir -p /etc/NetworkManager/conf.d',
'touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf',
'rm /etc/resolv.conf && cp /run/systemd/resolve/resolv.conf /etc/resolv.conf',
'ls /run/systemd/resolve/resolv.conf && rm /etc/resolv.conf && cp /run/systemd/resolve/resolv.conf /etc/resolv.conf',
'systemctl disable --now systemd-resolved.service',
'printf "[main]\ndns=default" > /etc/NetworkManager/conf.d/disable-systemd-resolved.conf',
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment