aboutsummaryrefslogtreecommitdiffstats
path: root/mail/roundcube/pkg-install
blob: ca19fb80a3aa320bf58d10bd543fe9770570e0a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh

case $2 in

POST-INSTALL)
    chown -R ${SHAREOWN}:${SHAREGRP} ${RCUBEROOT}/
    chown -R ${WWWOWN}:${WWWGRP} ${RCUBEROOT}/logs
    chown -R ${WWWOWN}:${WWWGRP} ${RCUBEROOT}/temp
    for i in ${RCUBEROOT}/config/db.inc.php ${RCUBEROOT}/config/main.inc.php; do
        [ -f ${i} ] || cp ${i}.dist ${i}
    done
    ;;
*)
    exit 1
    ;;
esac

exit 0