From: Christian Heller Date: Wed, 7 Oct 2015 02:07:44 +0000 (+0200) Subject: Set hostname directly in server postinstall script. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/%7B%7B%20web_path%20%7D%7D/decks/todo?a=commitdiff_plain;h=d9625c6145d7cabbb23d5bbe2cf6fa3dec43bde8;p=config Set hostname directly in server postinstall script. --- diff --git a/jessie_start_server.sh b/jessie_start_server.sh index ee3e452..162a551 100755 --- a/jessie_start_server.sh +++ b/jessie_start_server.sh @@ -24,6 +24,7 @@ echo 'APT::Install-Suggests "false";' >> /etc/apt/apt.conf.d/99mindeps # Set hostname and FQDN. echo 'plomlompom' > /etc/hostname +hostname 'plomlompom' echo '127.0.0.1 localhost' > /etc/hosts ip=`hostname -I` echo "$ip plomlompom.com plomlompom" >> /etc/hosts @@ -92,7 +93,6 @@ echo 'plomlompom.com' > /etc/mailname DEBIAN_FRONTEND=noninteractive apt-get -y install getmail4 procmail mutt postfix maildrop cp config/systemfiles/main.cf /etc/postfix/main.cf cp config/systemfiles/aliases /etc/aliases -newaliases service postfix restart # Set up screen. diff --git a/systemfiles/aliases b/systemfiles/aliases index a6d27e9..89a1a33 100644 --- a/systemfiles/aliases +++ b/systemfiles/aliases @@ -2,16 +2,16 @@ # As per RFC 2142. -mailer-daemon: postmaster@plomlompom.com -postmaster: root@plomlompom.com -nobody: root@plomlompom.com -hostmaster: root@plomlompom.com -usenet: root@plomlompom.com -news: root@plomlompom.com -webmaster: root@plomlompom.com -www: root@plomlompom.com -ftp: root@plomlompom.com -abuse: root@plomlompom.com -noc: root@plomlompom.com -security: root@plomlompom.com -root: plom@plomlompom.com +mailer-daemon: postmaster +postmaster: root +nobody: root +hostmaster: root +usenet: root +news: root +webmaster: root +www: root +ftp: root +abuse: root +noc: root +security: root +root: plom