When making a new list, set web interface to be https://lists.hcoop.net by default.
[clinton/scripts.git] / listnew
diff --git a/listnew b/listnew
index 1f475a0..90ea197 100755 (executable)
--- a/listnew
+++ b/listnew
@@ -5,10 +5,15 @@
 # Usage: listnew LISTNAME LISTDOMAIN USER RANDOM_PASSWORD
 
 BIN=/var/lib/mailman/bin
+DEFAULT_URL=https://lists.hcoop.net
 
 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
+# By default, use our list admin website for the public interface.
+# This can be changed after the user has set up their mailMan
+# directive.  We do this because the default is
+# http://lists.hcoop.net, without SSL, which makes list admin not work
+# at all.
+/afs/hcoop.net/common/etc/scripts/change-list-url $1 $DEFAULT_URL
 
-echo "Sucessfully imported list $1"
+echo "Sucessfully created list $1"