blob: d69681e004bbfae855e8247d571769c2a27e6417 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#!/bin/sh
#
# $NetBSD: INSTALL,v 1.1.1.1 2002/06/16 11:34:26 cjep Exp $
if [ "$2" != "POST-INSTALL" ]; then
exit 0
fi
mkdir -p @@LEAFNODE_CONFDIR@@
if [ ! -f @@LEAFNODE_CONFDIR@@/config ]; then
cp @@PREFIX@@/share/examples/leafnode/config.example \
@@LEAFNODE_CONFDIR@@/config
chmod u+w @@LEAFNODE_CONFDIR@@/config
fi
echo "Creating leafnode spool directories..."
SPOOL_DIRS="leaf.node failed.postings interesting.groups out.going message.id"
mkdir -p @@LEAFNODE_SPOOL@@
chown news:news @@LEAFNODE_SPOOL@@
chmod 2775 @@LEAFNODE_SPOOL@@
for D in $SPOOL_DIRS; do
mkdir -p @@LEAFNODE_SPOOL@@/$D;
chown news:news @@LEAFNODE_SPOOL@@/$D
chmod 2775 @@LEAFNODE_SPOOL@@/$D
done
mkdir -p @@LEAFNODE_LOCKDIR@@
chown news:news @@LEAFNODE_LOCKDIR@@
chmod 2775 @@LEAFNODE_LOCKDIR@@
# Make directories (a la quickmkdir)
for a in 0 1 2 3 4 5 6 7 8 9; do
for b in 0 1 2 3 4 5 6 7 8 9; do
for c in 0 1 2 3 4 5 6 7 8 9; do
mkdir -m 2775 -p @@LEAFNODE_SPOOL@@/message.id/$a$b$c
chown news:news @@LEAFNODE_SPOOL@@/message.id/$a$b$c
done
done
done
exit 0
|