mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
6e165bf799
PR: ports/143550 Submitted by: Marko Njezic <mrmax063@maxempire.com> Approved by: Olafur Osvaldsson <osvaldsson@icelandic.net> (maintainer)
20 lines
375 B
Bash
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
|