blob: d365d4776bc6fae5c6c13116afe0b260c51310d9 (
plain)
- #!/bin/sh
- set -e
- if [ -x /usr/bin/razor-admin ]; then
- rm -rf /var/lib/amavis/.razor
- su - amavis -c 'razor-admin -d -create'
- su - amavis -c 'razor-admin -d -register' || su - amavis -c 'razor-admin -register' || su - amavis -c 'razor-admin -register' \
- || echo "Run this command until it succeeds: \"su - amavis -c 'razor-admin -register'\""
- else
- echo "WARNING: Razor not installed!"
- fi
- if [ -x /usr/bin/pyzor ]; then
- rm -rf /var/lib/amavis/.pyzor
- su - amavis -c 'pyzor ping'
- else
- echo "WARNING: Pyzor not installed!"
- fi
- if [ -x /usr/bin/sa-learn ]; then
- rm -rf /var/lib/amavis/.spamassassin
- su amavis -c 'sa-learn --sync'
- else
- echo "WARNING: SpamAssassin not installed!"
- fi
|