#!/bin/bash die() { echo "#####" echo $1 echo "#####" exit 1 } if [ $1 = "install" ]; then # fix location of SQL tables sed -e "s|../tables/|'${VHOST_ROOT}/${PN}-${PVR}/tables/|" -i ${MY_INSTALLDIR}/config_setup.php || die "sed failed" fi