summaryrefslogtreecommitdiff
path: root/deskutils/horde-kronolith/files/pkg-install.in
blob: 84722b6dc70ae225a349c7d492fbcb0203f5825b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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 %%KRONOLITHDIR%%/config/*.dist | sed -e 's/\.dist//g'`; do
                if [ ! -f $cf ]; then
                    cp -p $cf.dist $cf
                fi
            done
        fi
    ;;
esac