summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-02-06 22:09:23 +0000
committerBrian Somers <brian@FreeBSD.org>1998-02-06 22:09:23 +0000
commitb5b86491ad2405c1e662d71da9af35b791d417b1 (patch)
tree3146505f3f90ed76ffc76c9400a9f31715aac911 /news
parentFix MASTER_SITES (diff)
Make the package create the spool dirs
PR: 5629 Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
Notes
Notes: svn path=/head/; revision=9606
Diffstat (limited to 'news')
-rw-r--r--news/leafnode/pkg-install13
1 files changed, 13 insertions, 0 deletions
diff --git a/news/leafnode/pkg-install b/news/leafnode/pkg-install
new file mode 100644
index 000000000000..8642cd42ed6b
--- /dev/null
+++ b/news/leafnode/pkg-install
@@ -0,0 +1,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