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

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

if [ $1 = "install" ]; then
	sed -e "s|/path/to/wikiconfig|${VHOST_ROOT}/${PN}-${PVR}|g" -i ${MY_INSTALLDIR}/moin.cgi || die "sed failed"
	sed -e "s|\./data/|${VHOST_ROOT}/${PN}-${PVR}/data|
			s|\./underlay/|${VHOST_ROOT}/${PN}-${PVR}/underlay|" -i ${VHOST_ROOT}/${PN}-${PVR}/wikiconfig.py || die "sed failed"

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