possible fix for #86
This commit is contained in:
parent
2d5e5ac445
commit
c252ecb869
|
@ -47,13 +47,13 @@ let
|
||||||
if lib.isString sieveScript then ''
|
if lib.isString sieveScript then ''
|
||||||
if (! test -d "/var/sieve/${name}"); then
|
if (! test -d "/var/sieve/${name}"); then
|
||||||
mkdir -p "/var/sieve/${name}"
|
mkdir -p "/var/sieve/${name}"
|
||||||
chown "${name}:${vmailGroupName}" "/var/sieve/${name}"
|
chown "${vmailUserName}:${vmailGroupName}" "/var/sieve/${name}"
|
||||||
chmod 770 "/var/sieve/${name}"
|
chmod 770 "/var/sieve/${name}"
|
||||||
fi
|
fi
|
||||||
cat << 'EOF' > "/var/sieve/${name}/default.sieve"
|
cat << 'EOF' > "/var/sieve/${name}/default.sieve"
|
||||||
${sieveScript}
|
${sieveScript}
|
||||||
EOF
|
EOF
|
||||||
chown "${name}:${vmailGroupName}" "/var/sieve/${name}/default.sieve"
|
chown "${vmailUserName}:${vmailGroupName}" "/var/sieve/${name}/default.sieve"
|
||||||
'' else ''
|
'' else ''
|
||||||
if (test -f "/var/sieve/${name}/default.sieve"); then
|
if (test -f "/var/sieve/${name}/default.sieve"); then
|
||||||
rm "/var/sieve/${name}/default.sieve"
|
rm "/var/sieve/${name}/default.sieve"
|
||||||
|
|
Loading…
Reference in New Issue