5a18218c20
they now do not overwrite existing configuration files. Rather than backing up the old ones and allowing the user to merge the files by hand, config files are left untouched. Submitted by: Shaun Amott <shaun@inerd.com>
23 lines
457 B
Bash
23 lines
457 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PATH=/usr/sbin:/usr/bin:/bin ; export PATH
|
|
|
|
case $2 in
|
|
PRE-INSTALL)
|
|
;;
|
|
|
|
POST-INSTALL)
|
|
if [ -z "${PACKAGE_BUILDING}" ]; then
|
|
# Copy over sample config files unless they already exist
|
|
|
|
for cf in `ls %%NAGDIR%%/config/*.dist | sed -e 's/\.dist//g'`; do
|
|
if [ ! -f $cf ]; then
|
|
cp -p $cf.dist $cf
|
|
fi
|
|
done
|
|
fi
|
|
;;
|
|
esac
|