diff options
| author | Michael Biebl <biebl@debian.org> | 2017-06-17 20:58:14 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2017-06-17 21:02:19 +0200 |
| commit | bfe57e5fbd9cea476af46baece1c83c1b9cdd631 (patch) | |
| tree | de45fe78cd6317a1abfe3c5482f3bb1e27aaa722 /debian/network-manager.postinst | |
| parent | b53658e4cedc1c60f05c9840a54435ca84dc17e0 (diff) | |
Switch runstatedir from /var/run to /run
Update existing /etc/resolv.conf symlinks accordingly. Closes: #860045
Diffstat (limited to 'debian/network-manager.postinst')
| -rw-r--r-- | debian/network-manager.postinst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/network-manager.postinst b/debian/network-manager.postinst index 38539e63..0f95087f 100644 --- a/debian/network-manager.postinst +++ b/debian/network-manager.postinst @@ -37,6 +37,13 @@ case "$1" in echo "" 1>&2 fi fi + + # Fix up existing /etc/resolv.conf symlinks after the migration to /run + if dpkg --compare-versions "$2" lt-nl "1.8.0-4"; then + if [ "$(readlink /etc/resolv.conf)" = /var/run/NetworkManager/resolv.conf ] ; then + ln -sf /run/NetworkManager/resolv.conf /etc/resolv.conf + fi + fi ;; abort-upgrade|abort-deconfigure|abort-remove) |