blob: 9875fb790a2260d7cd9bd806cc70c56d55d2f77b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
if [ $1 = "install" ]; then
# set $HOME
sed -i "s|/opt/otrs|${VHOST_ROOT}/${P}|" ${VHOST_ROOT}/${P}/Kernel/Config.pm ${VHOST_ROOT}/${P}/scripts/*
# set permissions
${VHOST_ROOT}/${P}/bin/SetPermissions.sh ${VHOST_ROOT}/${P} otrs apache apache apache > /dev/null
# set libdir
sed -e "s|\$Bin/\.\./\.\.|${VHOST_ROOT}/${P}|g" -i ${VHOST_CGIBINDIR}/${PN}/*
elif [ $1 = "clean" ]; then
# rm -rf ${VHOST_ROOT}/${P}/Kernel/Config.pm.dist ${VHOST_ROOT}/${P}/scripts/*
# rm -rf ${VHOST_CGIBINDIR}/${PN}
# cd ${VHOST_ROOT}/${P}
# rm -rf bin doc scripts var Kernel/Config Kernel/Language* Modules Output System cpan-lib
echo "************"
echo "Automatic uninstallation disabled until I figure out bug #65850 -- rl03"
echo"*************"
fi
|