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:
parent
21c6ad7219
commit
ac9f32de1e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user