blob: 68883bb7a01f72762d875735cdf7c41f2aac2d14 (
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
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/sh
#
# $FreeBSD$
#
PATH=/usr/sbin:/usr/bin:/bin ; export PATH
WWWDIR=%%WWWDIR%%
SUPHP_ENABLED=%%SUPHP_ENABLED%%
CFG_FILE=%%CFG_FILE%%
pma_usr=%%PMA_USR%%
pma_grp=%%PMA_GRP%%
case $2 in
POST-INSTALL)
# If suPHP is in use, change ownership of the phpMyAdm
# directory
if [ ! -z ${SUPHP_ENABLED} ] ; then
echo "===> Adjusting file ownership in $WWWDIR"
chown -R $pma_usr:$pma_grp $WWWDIR || exit 1
fi
# Install the config file if it doesn't exist
if [ ! -f ${CFG_FILE} ] ; then
cp -p ${CFG_FILE}.sample ${CFG_FILE}
fi
;;
esac
#
# That's All Folks!
#
|