aboutsummaryrefslogtreecommitdiffstats
path: root/www/MT/files/pkg-install.in
blob: 8ea8306a6b20e3fb117961706cf655f9e955034e (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
24
#!/bin/sh
case $2 in
    PRE-INSTALL)
        ;;
    POST-INSTALL)

        if [ "X"$3 != "X" ]; then
            mkdir -p -m 755 ${STAGE}%%DB_DIR%%
            chown -R %%WWWOWN%%:%%WWWGRP%% ${STAGE}%%DB_DIR%%
        fi
            chown -R %%WWWOWN%%:%%WWWGRP%%\
                ${STAGE}%%PREFIX%%/%%CGIDIR%%\
                ${STAGE}%%PREFIX%%/%%DATADIR%%
        ;;
    *)
    ;;
esac
mkdir -p -m 755 ${STAGE}%%PREFIX%%/%%CGIDIR%%/import\
        ${STAGE}%%PREFIX%%/%%CGIDIR%%/alt-tmpl\
        ${STAGE}%%PREFIX%%/%%CGIDIR%%/extlib/MT/L10N\
        ${STAGE}%%PREFIX%%/%%CGIDIR%%/php/extlib/smarty/demo/templates_c\
        ${STAGE}%%PREFIX%%/%%CGIDIR%%/php/plugins\
        ${STAGE}%%PREFIX%%/%%DATADIR%%/mt-static/support
exit