Fix aliases database population on startup
This commit is contained in:
parent
848fe4ad46
commit
6c21c0d204
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue