summaryrefslogtreecommitdiff
blob: a73d90f088bf6e53352738a891d96a68629ac4e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

die() {
	echo "#####"
	echo $1
	echo "#####"
	exit 1
}

if [ $1 = "install" ]; then
	cd ${MY_INSTALLDIR}/libraries
	sed -e "s|\$cfg\['PmaAbsoluteUri'\] = '';|\$cfg\['PmaAbsoluteUri'\] = 'http://${VHOST_HOSTNAME}/${VHOST_APPDIR}';|g" -i config.default.php || die "sed failed"

elif [ $1 = "clean" ]; then
	echo $1
fi