freebsd-ports/audio/murmur/pkg-install
Chris Rees 886d2d357a - Use USERS and GROUPS
- Stop automatically deleting user on deinstall; may be used by other ports

PR:		ports/157520
Submitted by:	Chris Rees (utisoft@gmail.com) (me)
Approved by:	tabthorpe (co-mentor)
2011-06-25 19:55:42 +00:00

16 lines
262 B
Bash

#!/bin/sh
# $FreeBSD$
PATH=/bin:/usr/sbin
LOGDIR=/var/log/murmur
RUNDIR=/var/run/murmur
DBDIR=/var/db/murmur
case $2 in
PRE-INSTALL)
mkdir -m 750 ${LOGDIR} ${DBDIR} ${RUNDIR} 2> /dev/null
chown -R ${USER}:${GROUP} ${LOGDIR} ${DBDIR} ${RUNDIR}
;;
esac