blob: 51b5e45e4d48569c532bae4ba5c12edc8b420086 (
plain) (
tree)
|
|
#! /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
|