blob: 51b5e45e4d48569c532bae4ba5c12edc8b420086 (
plain) (
blame)
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
|
#! /bin/sh
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
SPOOLDIR=${SPOOLDIR:=${PKG_PREFIX}/var/spool/leafnode}
LOCKFILE=${SPOOLDIR}/leaf.node/lock.file
mkdir -p `dirname $LOCKFILE`
mkdir -p $SPOOLDIR
mkdir -p $SPOOLDIR/failed.postings
mkdir -p $SPOOLDIR/leaf.node
mkdir -p $SPOOLDIR/message.id
mkdir -p $SPOOLDIR/interesting.groups
mkdir -p $SPOOLDIR/out.going
mkdir -p $SPOOLDIR/temp.files
chown news:news `dirname $LOCKFILE`
chown news:news $SPOOLDIR
chown news:news $SPOOLDIR/failed.postings
chown news:news $SPOOLDIR/leaf.node
chown news:news $SPOOLDIR/message.id
chown news:news $SPOOLDIR/interesting.groups
chown news:news $SPOOLDIR/out.going
chown news:news $SPOOLDIR/temp.files
;;
*)
echo >&2 "Unknown argument in $0 $@"
exit 1
;;
esac
|