1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/news/leafnode/pkg-install
Brian Somers b5b86491ad Make the package create the spool dirs
PR:		5629
Submitted by:	Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1998-02-06 22:09:23 +00:00

14 lines
399 B
Bash

#!/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