diff options
author | Jonas Smedegaard <dr@jones.dk> | 2005-12-11 21:12:15 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2005-12-11 21:12:15 +0000 |
commit | ede3bfa3967218bad9f5fca5f47a4107cbde3b31 (patch) | |
tree | 181e33b2245fc5def47d07d89cbbfb96e923461c | |
parent | 799045fd24d09c10328a6e5f3fe6eb452a307b5c (diff) |
Enable misc. debugging.
-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 |