Update mailman defs right away in listnew
[hcoop/scripts.git] / listnew
diff --git a/listnew b/listnew
index d2672f2..1f475a0 100755 (executable)
--- a/listnew
+++ b/listnew
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 #
 # Make a new mailing list.  Run as root on deleuze.
 #
@@ -7,3 +7,8 @@
 BIN=/var/lib/mailman/bin
 
 sudo -u list $BIN/newlist $1@$2 $3@hcoop.net $4 </dev/null
+
+echo "Updating mailman definitions for Exim ..."
+/afs/hcoop.net/common/etc/scripts/mailman-update-exim-db
+
+echo "Sucessfully imported list $1"