diff options
-rwxr-xr-x | amavis/amavis.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/amavis/amavis.sh b/amavis/amavis.sh index 371b5b9..7675879 100755 --- a/amavis/amavis.sh +++ b/amavis/amavis.sh @@ -1,7 +1,9 @@ -#!/bin/sh +#!/bin/sh -x -su - amavis -c 'razor-admin -create' -su - amavis -c 'razor-admin -register' || su - amavis -c 'razor-admin -register' || su - amavis -c 'razor-admin -register' \ +set -e + +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'\"" rm -rf /var/lib/amavis/.spamassassin |