backslash

This commit is contained in:
Bob Mottram 2018-02-13 22:55:05 +00:00
parent b60ff37349
commit f0fe7828e6
1 changed files with 2 additions and 2 deletions

View File

@ -326,8 +326,8 @@ function install_bdsmail {
systemctl start bdsmail systemctl start bdsmail
echo '#!/bin/bash' > /usr/bin/bdsmail_distribute echo '#!/bin/bash' > /usr/bin/bdsmail_distribute
echo 'BDSMAIL_DIR=/etc/bdsmail' >> /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 "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 'if [ ! -d $MAIL_DIR/postmaster/new ]; then' >> /usr/bin/bdsmail_distribute
echo ' exit 0' >> /usr/bin/bdsmail_distribute echo ' exit 0' >> /usr/bin/bdsmail_distribute
echo 'fi' >> /usr/bin/bdsmail_distribute echo 'fi' >> /usr/bin/bdsmail_distribute