f8863d6900
Use USERS and GROUPS Do not override configuration files PR: ports/156947 [1] Submitted by: "Sergey V. Dyatko" <sergey.dyatko@gmail.com> Approved by: Veniamin Gvozdikov <g.veniamin@googlemail.com> (maintainer), tabthorpe (mentor)
15 lines
219 B
Bash
15 lines
219 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
|
|
ETCDIR=%%ETCDIR%%
|
|
ETC_FILES="%%ETC_FILES%%"
|
|
|
|
case $2 in
|
|
POST-INSTALL)
|
|
for f in ${ETC_FILES}
|
|
do
|
|
if [ ! -f ${ETCDIR}/${f} ]; then
|
|
/bin/cp ${ETCDIR}/${f}.sample ${ETCDIR}/${f}
|
|
fi
|
|
done
|
|
esac
|