#!/bin/sh

# YOU MUST do the raid setup first.  use raidmanager.sh to install
# and then setup the devices below.

mkserv remote
sh /afs/sipb/service/solaris/mkserv/sipbserv93.add
sh /afs/sipb/service/solaris/mkserv/qmail93.add
sh /afs/sipb/service/solaris/mkserv/ipf93.add
sh /afs/sipb/service/solaris/mkserv/news.add

# if this fails, you need to install raidmanager and recreate the
# raid partition.  or figure out where you want all the news junk to go.
mkdir /news
echo "/dev/dsk/c1t5d0s0 /dev/rdsk/c1t5d0s0 /news ufs - - -" >> /etc/vfstab
mount /news
mkdir /news/bin0
echo "/dev/dsk/c1t5d1s0 /dev/rdsk/c1t5d0s0 /news/bin0 ufs - - -" >> /etc/vfstab
mount /news/bin0



sh /afs/sipb/service/news/install/diablo.sh reader
sh /afs/sipb/service/news/install/majordomo.sh

(cd / ; tar -xpf /afs/sipb/machine/senator-bedfellow/configs/qmail-aliases.tar)
cp /afs/sipb/machine/senator-bedfellow/configs/qmail-assign /var/qmail/users/assign
/var/qmail/bin/qmail-newu
echo "usenet-grunge" >> /var/qmail/control/doublebounceto
echo "senator-bedfellow.mit.edu\nnews-digests.mit.edu" >> /var/qmail/control/locals
echo "senator-bedfellow.mit.edu" >> /var/qmail/control/rcpthosts
echo "senator-bedfellow" >> /var/qmail/control/rcpthosts
echo "news.mit.edu" >> /var/qmail/control/rcpthosts
echo "news" >> /var/qmail/control/rcpthosts
echo "news-digests.mit.edu" >> /var/qmail/control/rcpthosts
echo "news-digests" >> /var/qmail/control/rcpthosts
(cd / ; tar -xpf /afs/sipb/machine/senator-bedfellow/configs/diablo-config.tar)
(cd / ; tar -xpf /afs/sipb/machine/senator-bedfellow/configs/majordomo-lists.tar)


