home · contact · privacy
Fix bug in string replacement introduced in previous commit.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 7 Feb 2016 23:19:36 +0000 (00:19 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 7 Feb 2016 23:19:36 +0000 (00:19 +0100)
jessie_postinstall.sh

index 98e8a8182b51b04ddecd2233df61b00628b3fbab..2d01b518c6a979f4869306a863e2199aa56d5205 100755 (executable)
@@ -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