Added -p option for mkdir, so that there is no misleading error message from boot script at restart of docker container

This commit is contained in:
DaS-Wunder 2015-11-19 15:14:03 +01:00 committed by Your Name
parent 21c6ad7219
commit ac9f32de1e

View File

@ -12,7 +12,7 @@ cp /mail_settings/aliases /etc/postfix/virtual
cp /mail_settings/domains /etc/postfix/virtual-mailbox-domains
# Parse mailbox settings
mkdir /etc/postfix/tmp
mkdir -p /etc/postfix/tmp
awk < /etc/postfix/virtual '{ print $2 }' > /etc/postfix/tmp/virtual-receivers
sed -r 's,(.+)@(.+),\2/\1/,' /etc/postfix/tmp/virtual-receivers > /etc/postfix/tmp/virtual-receiver-folders
paste /etc/postfix/tmp/virtual-receivers /etc/postfix/tmp/virtual-receiver-folders > /etc/postfix/virtual-mailbox-maps