summaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-08-09 10:12:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-08-09 10:12:21 -0300
commit1f06e5aa9a8ec7cca62b4b89bd22d04aca147220 (patch)
tree8f3bf14c28e303b6ed375fc8dbb442c92bb236d4 /share/hydractl/provision
parent36d7329bbee2d5841342686205190751fbf4e553 (diff)
downloadhydra-1f06e5aa9a8ec7cca62b4b89bd22d04aca147220.tar.gz
hydra-1f06e5aa9a8ec7cca62b4b89bd22d04aca147220.tar.bz2
Minor fix at /etc/hosts in provision
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-xshare/hydractl/provision3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index ca2092e..0d191c9 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -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..."