]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Throwing away old /etc/resolv.conf
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 29 Mar 2018 14:36:26 +0000 (16:36 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 29 Mar 2018 14:36:26 +0000 (16:36 +0200)
bin/postinst

index 197d569bdf9c016533310e2b7d114b38083a73e9..0d0b121a408e878f924adfb00f0c4abbbc6a710f 100644 (file)
@@ -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