#!/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}/* sed -e "s|\(\.\./\.\.\)/\(Kernel\|scripts\)|\1/otrs-1.3.2/\2|g" -i ${VHOST_ROOT}/${P}/Kernel/Modules/Installer.pm 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