886d2d357a
- 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)
16 lines
262 B
Bash
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
|