diff --git a/install_yunohost b/install_yunohost index dcfa270..d28276a 100755 --- a/install_yunohost +++ b/install_yunohost @@ -101,6 +101,17 @@ then if [[ $(grep -c "yunohost.$DOMAIN" /etc/hosts) -eq 0 ]] then bck /etc/hosts "$LEGACY" + cat < $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