X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~webstump/git?p=modbot-mtm.git;a=blobdiff_plain;f=install-aggregates;h=24052cc5a1c26ec17b74064cd142bae81ae65dac;hp=10e2e6d72e190b6399d942440fdef4d568fc1a26;hb=e011ab724b04e4a9c7b298af157219d4d53c3afd;hpb=56801be17418e7872d29647f348af045e2a23f7f diff --git a/install-aggregates b/install-aggregates index 10e2e6d..24052cc 100755 --- a/install-aggregates +++ b/install-aggregates @@ -8,6 +8,13 @@ case "$basedir" in esac cd $basedir +. global-settings + +if [ x"`whoami`" != x"$OURUSER" ]; then + echo >&2 "$0 must be run as $OURUSER, skipping" + exit 0 +fi + for f in crontab forward-suffix forward-slimy do d=$f @@ -21,6 +28,7 @@ do 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