From: Frank Brehm Date: Thu, 29 Mar 2018 14:36:26 +0000 (+0200) Subject: Throwing away old /etc/resolv.conf X-Git-Tag: 0.1.1~61 X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=e950a3d584f7eadb7c52fe2378e419d747e6fff8;p=pixelpark%2Fcreate-vmware-tpl.git Throwing away old /etc/resolv.conf --- 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