mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/postfix: backwards compatibility with /var/postfix
This commit is contained in:
parent
be2b989842
commit
d3a19f1b8e
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue