mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-28 16:06:12 +01:00
possible fix for #86
This commit is contained in:
parent
82823a4085
commit
ea20d60ec1
1 changed files with 2 additions and 2 deletions
|
@ -47,13 +47,13 @@ let
|
|||
if lib.isString sieveScript then ''
|
||||
if (! test -d "/var/sieve/${name}"); then
|
||||
mkdir -p "/var/sieve/${name}"
|
||||
chown "${name}:${vmailGroupName}" "/var/sieve/${name}"
|
||||
chown "${vmailUserName}:${vmailGroupName}" "/var/sieve/${name}"
|
||||
chmod 770 "/var/sieve/${name}"
|
||||
fi
|
||||
cat << 'EOF' > "/var/sieve/${name}/default.sieve"
|
||||
${sieveScript}
|
||||
EOF
|
||||
chown "${name}:${vmailGroupName}" "/var/sieve/${name}/default.sieve"
|
||||
chown "${vmailUserName}:${vmailGroupName}" "/var/sieve/${name}/default.sieve"
|
||||
'' else ''
|
||||
if (test -f "/var/sieve/${name}/default.sieve"); then
|
||||
rm "/var/sieve/${name}/default.sieve"
|
||||
|
|
Loading…
Reference in a new issue