#
# install with
-# ssh webstump@chiark live/crontab-install
+# ssh webstump@chiark live-mtm/install-aggregates
#
#m h d m dow
50 7 * * 1,4 savelog live-%ABBREV%/xlog/log/%GROUP%/event.log
or $local_part_suffix is +%ABBREV%+test-submission
then
unseen pipe "mail -s submission %LOGGROUPEMAILPREFIX%+%ABBREV%+log+submissions"
- unseen pipe "/home/webstump/live/xlog/bin/record submission %GROUP%"
- pipe "/home/webstump/live/stump/etc/modenv stump.pl submission.pl"
+ unseen pipe "%BASEDIR%/xlog/bin/record submission %GROUP%"
+ pipe "%BASEDIR%/stump/etc/modenv stump.pl submission.pl"
finish
endif
seen deliver %ABBREV%-rejections@chiark.greenend.org.uk
finish
endif
-
-unseen finish
if [ $rc = 0 ]
then
echo 'posted ok!'
- $HOME/live/xlog/bin/record posted %GROUP% <$tf
+ %BASEDIR%/xlog/bin/record posted %GROUP% <$tf
exit 0
fi
exit 0
fi
-fall-over-now
-
-for f in crontab forward-suffix forward-slimy mailinglists_dir
+for f in crontab forward-suffix forward-slimy
do
d=$f
g=$f.combined
echo '# autogenerated - do not edit' >>$g
if test -f $f.part; then cat $f.part >>$g; fi
cat live-*/$f.part >>$g
+ if test -f $f.part-tail; then cat $f.part-tail >>$g; fi
mv -f $g $d
case $f in
--- /dev/null
+#!/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
. ../global-settings
. persistent-autosettings
+mkdir -p stump/tmp/messages
+mkdir -p stump/data
mkdir -p webstump/queues/$GROUP
mkdir -p xlog/log/$GROUP
x ./install-substitutions
x make -C webstump
x ./install-aggregates
+x ./install-loggroups
echo ==== DONE ====