From e950a3d584f7eadb7c52fe2378e419d747e6fff8 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 29 Mar 2018 16:36:26 +0200 Subject: [PATCH] Throwing away old /etc/resolv.conf --- bin/postinst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/postinst b/bin/postinst index 197d569..0d0b121 100644 --- a/bin/postinst +++ b/bin/postinst @@ -217,9 +217,9 @@ manage_dns() { echo log "Generating /etc/resolv.conf ..." - if [[ -f /etc/resolv.conf ]] ; then - mv -v /etc/resolv.conf "/etc/resolv.conf.orig.$( date -r /etc/resolv.conf +'%Y-%m-%d_%H:%M:%S' )" - fi + + rm -fv /etc/resolv.conf + cat <<-EOF >"/etc/resolv.conf" search pixelpark.net pixelpark.com nameserver 217.66.52.10 -- 2.39.5