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

FILE="bugzilla.cron.daily bugzilla.cron.tab"

function die ()
{
	echo
	echo "***"
	echo "*** Fatal error: $*"
	echo "***"
	exit 1
}

if [ $1 = "install" ]; then
	cd "${MY_INSTALLDIR}" || die "Cannot find install dir ${MY_INSTALLDIR}"
	sed -e "s|/var/www/bugzilla|${MY_INSTALLDIR}|g" -i ${FILE} || die "sed failed"
else
	echo "done."
fi