added IP and ve2lxc hostname to /etc/hosts
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 15 Jun 2009 20:22:52 +0000 (20:22 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 15 Jun 2009 20:22:52 +0000 (20:22 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@112 191e9f34-6774-4a6d-acfc-7664dacd4a2a

recepies/lxc/ve2lxc.sh

index 702619c..fd55681 100755 (executable)
@@ -52,6 +52,8 @@ __interfaces__
 
 echo $hostname > $dir/etc/hostname
 
+echo "$ip $hostname" >> $dir/etc/hosts
+
 conf=/tmp/ve2lxc.conf
 
 cat << __lxc__ > $conf