From: Christian Heller Date: Wed, 30 Sep 2015 02:11:44 +0000 (+0200) Subject: In server post-install script, set up hostname and FQDN. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/static/pick_tasks?a=commitdiff_plain;h=b6a969cac1ec6e8a5917b22e5a1ab326022277ea;p=config In server post-install script, set up hostname and FQDN. --- 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]