]> gitweb.fluxo.info Git - hydra.git/commitdiff
Minor fix at /etc/hosts in provision
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 9 Aug 2011 13:12:21 +0000 (10:12 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 9 Aug 2011 13:12:21 +0000 (10:12 -0300)
share/hydractl/provision

index ca2092ee693f37dcbc9a5e756d3d6ea24d70ae5d..0d191c9defe1cdbe18156e0103cd0c42d9698aa1 100755 (executable)
@@ -113,7 +113,8 @@ echo "127.0.0.1 $hostname $hostname.$domain" >> /tmp/debootstrap/etc/hosts
 echo "127.0.0.1 localhost" >> /tmp/debootstrap/etc/hosts
 
 # Invert hostname contents to avoid http://projects.puppetlabs.com/issues/2533
-tac /tmp/debootstrap/etc/hosts > /tmp/debootstrap/etc/hosts
+tac /tmp/debootstrap/etc/hosts > /tmp/debootstrap/etc/hosts.new
+mv /tmp/debootstrap/etc/hosts.new /tmp/debootstrap/etc/hosts
 
 # Initial upgrade.
 echo "Applying initial upgrades..."