Update install_yunohost

This commit is contained in:
abeudin 2013-02-04 15:36:52 +01:00
parent 39e2cda3d9
commit f0117560d8

View file

@ -101,6 +101,17 @@ then
if [[ $(grep -c "yunohost.$DOMAIN" /etc/hosts) -eq 0 ]]
then
bck /etc/hosts "$LEGACY"
cat <<EOF > $rootfs/etc/hosts
127.0.0.1 localhost
127.0.1.1 yunohost.$DOMAIN yunohost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
EOF
echo -e "127.0.0.1\tyunohost.$DOMAIN\tyunohost" > /etc/hosts
/etc/init.d/hostname.sh start
fi