Fix aliases database population on startup

This commit is contained in:
Daniel Carrillo 2020-03-08 13:26:50 +01:00
parent 848fe4ad46
commit 6c21c0d204
1 changed files with 3 additions and 2 deletions

View File

@ -18,10 +18,11 @@ if [ -n "$MY_NETWORKS" ]; then
fi fi
if [ -n "$MY_ROOT_ALIAS" ]; then if [ -n "$MY_ROOT_ALIAS" ]; then
echo "root: $MY_ROOT_ALIAS" > /etc/aliases sed -iE "s/^#root:.*/root: $MY_ROOT_ALIAS/" /etc/postfix/aliases
newaliases
fi fi
newaliases -v
# Ensure rsyslog is up # Ensure rsyslog is up
sv start rsyslog || exit 1 sv start rsyslog || exit 1