nixos/postfix: backwards compatibility with /var/postfix
This commit is contained in:
parent
be2b989842
commit
d3a19f1b8e
@ -430,6 +430,11 @@ in
|
||||
};
|
||||
|
||||
preStart = ''
|
||||
# Backwards compatibility
|
||||
if [ ! -d /var/lib/postfix ] && [ -d /var/postfix ]; then
|
||||
mkdir -p /var/lib
|
||||
mv /var/postfix /var/lib/postfix
|
||||
fi
|
||||
mkdir -p /var/lib/postfix/data /var/lib/postfix/queue/{pid,public,maildrop}
|
||||
|
||||
chown -R ${user}:${group} /var/lib/postfix
|
||||
|
Loading…
Reference in New Issue
Block a user