From b6a969cac1ec6e8a5917b22e5a1ab326022277ea Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 30 Sep 2015 04:11:44 +0200 Subject: [PATCH] In server post-install script, set up hostname and FQDN. --- jessie_start_server.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jessie_start_server.sh b/jessie_start_server.sh index c21fa91..4db2287 100755 --- a/jessie_start_server.sh +++ b/jessie_start_server.sh @@ -22,6 +22,12 @@ rm list_all_packages list_white_unsorted list_white list_black echo 'APT::Install-Recommends "false";' >> /etc/apt/apt.conf.d/99mindeps 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 +ip=`hostname -I` +echo "$ip plomlompom.com plomlompom" >> /etc/hosts + # Call dhclient on startup. cat > /etc/systemd/system/dhclient.service << EOF [Unit] -- 2.30.2