mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Update install_yunohost
This commit is contained in:
parent
39e2cda3d9
commit
f0117560d8
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue