1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/dns/nsd/files/pkg-install.in
Philip M. Gollucci 6e165bf799 - Fix permission issues
PR:             ports/143550
Submitted by:   Marko Njezic <mrmax063@maxempire.com>
Approved by:    Olafur Osvaldsson <osvaldsson@icelandic.net> (maintainer)
2010-02-11 19:37:10 +00:00

20 lines
375 B
Bash

#!/bin/sh
# $FreeBSD$
PATH="/bin:/sbin:/usr/bin:/usr/sbin"
NSDUSER=%%NSDUSER%%
NSDGROUP=%%NSDGROUP%%
NSDDBDIR=%%NSDDBDIR%%
NSDRUNDIR=%%NSDRUNDIR%%
CHOWN="chown"
INSTALL_DIR="install -d -o ${NSDUSER} -g ${NSDGROUP} -m 0755"
if [ "$2" = "POST-INSTALL" ]; then
${INSTALL_DIR} ${NSDDBDIR} ${NSDRUNDIR}
${CHOWN} -R ${NSDUSER}:${NSDGROUP} ${NSDDBDIR} ${NSDRUNDIR}
fi
exit 0