Skip to content
Snippets Groups Projects
Commit 2f5deb0c authored by Bob Mottram's avatar Bob Mottram
Browse files

Set mailname at the same time as hostname

parent 4406b117
No related branches found
No related tags found
No related merge requests found
......@@ -671,8 +671,6 @@ function install_email {
return
fi
echo "$DEFAULT_DOMAIN_NAME" > /etc/mailname
apt-get -y remove postfix
apt-get -y install exim4 sasl2-bin swaks libnet-ssleay-perl procmail xinetd
......
......@@ -184,6 +184,7 @@ function set_hostname {
echo "$DEFAULT_DOMAIN_NAME" > /etc/hostname
hostname $DEFAULT_DOMAIN_NAME
echo "$DEFAULT_DOMAIN_NAME" > /etc/mailname
if grep -q "127.0.1.1" /etc/hosts; then
sed -i "s/127.0.1.1.*/127.0.1.1 $DEFAULT_DOMAIN_NAME/g" /etc/hosts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment