From 00ca69c32a596e02eeafd60a9a5008d39e114eca Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 8 Feb 2016 00:19:36 +0100
Subject: [PATCH] Fix bug in string replacement introduced in previous commit.

---
 jessie_postinstall.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jessie_postinstall.sh b/jessie_postinstall.sh
index 98e8a81..2d01b51 100755
--- a/jessie_postinstall.sh
+++ b/jessie_postinstall.sh
@@ -182,7 +182,7 @@ if [ "$1" = "server" ]; then
     DEBIAN_FRONTEND=noninteractive apt-get -y install getmail4 procmail mutt \
         postfix maildrop
     cp config/systemfiles/main.cf /etc/postfix/main.cf
-    sed -i 's/HOSTNAME/'.$2.'/g' /etc/postfix/main.cf
+    sed -i 's/HOSTNAME/'$2'/g' /etc/postfix/main.cf
     cp config/systemfiles/aliases /etc/aliases
     newaliases
     service postfix restart
-- 
2.30.2