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

case "$1" in
    install)
	chown ${VHOST_SERVER_UID} ${MY_INSTALLDIR}/log
	sed -i -e "s#/path/to/blog#${MY_INSTALLDIR}/data/#" ${VHOST_CGIBINDIR}/pyblosxom/config.py || exit
	sed -i -e "s#/path/to/logdir#${MY_INSTALLDIR}/log/#" ${VHOST_CGIBINDIR}/pyblosxom/config.py || exit
	sed -i -e "s#^\#\(.*\)/path/to/my/plugins#\1/usr/share/pyblosxom-1.2.1/plugins/#" ${VHOST_CGIBINDIR}/pyblosxom/config.py || exit
	;;
    *)
	# Nothing to do for clean up
	;;
esac