Skip to content

Commit 906b22c

Browse files
committed
#42 create aliases file if not exists
1 parent c762f7a commit 906b22c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

resources/startup.sh

+7
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ writeIntoFileAndSetIfConfigured "smtp_tls_CAfile" "/etc/postfix/CAcert.pem"
101101
# LOGGING CONFIG
102102
./logging.sh
103103

104+
# create aliases
105+
if [ ! -f /etc/postfix/aliases.lmdb ]; then
106+
echo "aliases file not found!"
107+
echo "create new aliases.."
108+
newaliases
109+
fi
110+
104111
echo "finished configuration, start Postfix ..."
105112
# START POSTFIX
106113
exec /usr/bin/supervisord -c /etc/supervisord.conf

0 commit comments

Comments
 (0)