aboutsummaryrefslogtreecommitdiffstats
path: root/dns/dnrd/pkg-install
blob: 950332819e14cb6ced580d86eb1034faf7dc1300 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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