summaryrefslogtreecommitdiffstats
path: root/news/leafnode/pkg-install
blob: 8642cd42ed6b68b0e86e596f8617f7e70c975a28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
if [ x$2 != xPOST-INSTALL ]; then
        exit
fi
SPOOLDIR=/var/spool/news
export SPOOLDIR
mkdir -p $SPOOLDIR
csh -c 'mkdir -p $SPOOLDIR/{message.id,interesting.groups,out.going}'
echo This is actually quite fast, for _small_ servers.
csh -c 'mkdir -p $SPOOLDIR/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}
{0,1,2,3,4,5,6,7,8,9}'
chown -R news.news $SPOOLDIR
chmod 2750 $SPOOLDIR
OpenPOWER on IntegriCloud