chiark / gitweb /
Bugfixes etc.
[modbot-uram.git] / install-loggroups
diff --git a/install-loggroups b/install-loggroups
new file mode 100755 (executable)
index 0000000..d484a9a
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/bash
+set -e
+
+. ./get-settings
+
+case ",$NEWSADMINUSERS," in
+*,"`whoami`",*) ;;
+*)     echo >&2 "$0 must be run as one of $NEWSADMINUSERS, skipping"
+esac
+
+exec <mailinglists_dir.part
+while read alias group; do
+       ctlinnd newgroup $group y
+done
+
+cd ..
+cat live-*/mailinglists_dir.part >$MAILINGLISTSDIR.new
+mv -f $MAILINGLISTSDIR.new $MAILINGLISTSDIR