home · contact · privacy
Fix broken /etc/hosts generation in server postinstall script.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 30 Sep 2015 02:26:21 +0000 (04:26 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 30 Sep 2015 02:26:21 +0000 (04:26 +0200)
jessie_start_server.sh

index 4db22876333b3c25aaaef5386129d5042535ce3f..1ce290040790b4dfe62072045bc8a80915de25fb 100755 (executable)
@@ -24,7 +24,7 @@ echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/99mindeps
 
 # Set hostname and FQDN.
 echo 'plomlompom' > /etc/hostname
 
 # 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
 
 ip=`hostname -I`
 echo "$ip plomlompom.com plomlompom" >> /etc/hosts