From: Christian Heller Date: Wed, 30 Sep 2015 02:26:21 +0000 (+0200) Subject: Fix broken /etc/hosts generation in server postinstall script. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7B%20web_path%20%7D%7D/static/%7B%7Bdb.prefix%7D%7D/blog?a=commitdiff_plain;h=b5f107cf1ca0c4eb9a1ea563f752babbbd17db73;p=config Fix broken /etc/hosts generation in server postinstall script. --- diff --git a/jessie_start_server.sh b/jessie_start_server.sh index 4db2287..1ce2900 100755 --- a/jessie_start_server.sh +++ b/jessie_start_server.sh @@ -24,7 +24,7 @@ echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/99mindeps # Set hostname and FQDN. echo 'plomlompom' > /etc/hostname -echo '127.0.0.1' > /etc/hosts +echo '127.0.0.1 localhost' > /etc/hosts ip=`hostname -I` echo "$ip plomlompom.com plomlompom" >> /etc/hosts