Last active
November 2, 2018 15:37
-
-
Save mwyau/4cd36389d26c6b9996f4f405ea9178e7 to your computer and use it in GitHub Desktop.
/etc/NetworkManager/dispatcher.d/02-fixresolvconf.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| # Fix the permission of systemd-resolved resolv.conf after disconnected from | |
| # VPN in Ubuntu 18.04 | |
| if [ "$2" = "vpn-down" ]; then | |
| chmod 644 /run/systemd/resolve/stub-resolv.conf | |
| chown systemd-resolve:systemd-resolve /run/systemd/resolve/stub-resolv.conf | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment