Browse Source

updated mkvirt to not exit on sieve compilation failure

feature/startup-from-labels
Mario Alegre 4 years ago
parent
commit
58b25cff15
  1. 3
      mailsrv/assets/bin/mkvirt

3
mailsrv/assets/bin/mkvirt

@ -34,9 +34,8 @@ for user in * ; do
sievec ${user} -d - > /dev/null
if [ $? -eq 0 ]; then
echo "No errors detected."
cp -p ${user} /vol/mail/${user}/.dovecot.sieve
else
echo "Compilation errors detected in ${user}'s sieve script. Please correct any errors and run $(basename $0) again."
exit 2
fi
cp -p ${user} /vol/mail/${user}/.dovecot.sieve
done

Loading…
Cancel
Save