chiark / gitweb /
Strip X-Complaints-To too
[modbot-mtm.git] / install-loggroups
1 #!/bin/bash
2 set -e
3
4 . ./get-settings
5
6 case ",$NEWSADMINUSERS," in
7 *,"`whoami`",*) ;;
8 *)      echo >&2 "$0 must be run as one of $NEWSADMINUSERS, skipping"; exit 0;;
9 esac
10
11 exec <mailinglists_dir.part
12 while read alias group; do
13         ctlinnd newgroup $group y
14 done
15
16 cd ..
17 cat live-*/mailinglists_dir.part >$MAILINGLISTSDIR.new
18 mv -f $MAILINGLISTSDIR.new $MAILINGLISTSDIR