1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/dns/dnrd/pkg-install
Chris Rees 29fb0f538c - Use USERS and GROUPS
PR:		ports/157578
Submitted by:	Chris Rees (utisoft@gmail.com)
Approved by:	tabthorpe (co-mentor)
2011-06-27 17:54:21 +00:00

18 lines
274 B
Bash

#!/bin/sh
SYSCONF_DIR=${SYSCONF_DIR:-${PKG_PREFIX}/etc/dnrd}
case $2 in
POST-INSTALL)
if [ ! -d ${SYSCONF_DIR} ]; then
mkdir -p ${SYSCONF_DIR}
if [ ! -d ${SYSCONF_DIR} ]; then
echo "Creating \"${SYSCONF_DIR}\" failed."
exit 1
fi
fi
;;
esac
exit 0