From f0fe7828e6f667b8d28ff5518a8d5463847ae124 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Tue, 13 Feb 2018 22:55:05 +0000
Subject: [PATCH] backslash

---
 src/freedombone-app-bdsmail | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/freedombone-app-bdsmail b/src/freedombone-app-bdsmail
index 73975fbb2..3499d4fcd 100755
--- a/src/freedombone-app-bdsmail
+++ b/src/freedombone-app-bdsmail
@@ -326,8 +326,8 @@ function install_bdsmail {
     systemctl start bdsmail
 
     echo '#!/bin/bash' > /usr/bin/bdsmail_distribute
-    echo 'BDSMAIL_DIR=/etc/bdsmail' >> /usr/bin/bdsmail_distribute
-    echo "MAIL_DIR=\$BDSMAIL_DIR/$(cat \$BDSMAIL_DIR/config.ini | grep 'maildir =' | awk -F ' ' '{print \$3}')" >> /usr/bin/bdsmail_distribute
+    echo "BDSMAIL_DIR=$BDSMAIL_DIR" >> /usr/bin/bdsmail_distribute
+    echo "MAIL_DIR=\$BDSMAIL_DIR/\$(cat \$BDSMAIL_DIR/config.ini | grep 'maildir =' | awk -F ' ' '{print \$3}')" >> /usr/bin/bdsmail_distribute
     echo 'if [ ! -d $MAIL_DIR/postmaster/new ]; then' >> /usr/bin/bdsmail_distribute
     echo '    exit 0' >> /usr/bin/bdsmail_distribute
     echo 'fi' >> /usr/bin/bdsmail_distribute
-- 
GitLab