#!/bin/sh # $FreeBSD: head/net-mgmt/mrtg/files/pkg-install.in 340719 2014-01-22 15:52:06Z mat $ # PW="/usr/sbin/pw" CHOWN="/usr/sbin/chown" CHMOD="/bin/chmod" MKDIR="/bin/mkdir -p" NOLOGIN="/usr/sbin/nologin" MRTG_RUNDIR=%%MRTG_RUNDIR%% case "$2" in POST-INSTALL) if [ ! -d "$MRTG_RUNDIR" ]; then ${MKDIR} $MRTG_RUNDIR fi ${CHOWN} -R %%USERS%%:%%GROUPS%% ${MRTG_RUNDIR} ${CHMOD} 0700 ${MRTG_RUNDIR} ;; esac exit 0