summaryrefslogtreecommitdiff
path: root/www/contao29/DEINSTALL
blob: f0b87ce5606838c3073476ab0b5028e0459ce4b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $NetBSD: DEINSTALL,v 1.1.1.1 2010/07/05 14:45:21 taca Exp $

CT_WEBDIR="@PREFIX@/@CT_WEBDIR@"
CT_DIRS="system/config system/drivers system/libraries system/logs \
	 system/modules system/themes system/config system templates"

case ${STAGE} in
DEINSTALL)
	# remove cache files.
	${FIND} ${CT_WEBDIR}/system/html -type f ! -name index.html \
		-exec ${RM} -f {} \;
	${FIND} ${CT_WEBDIR}/plugins/tcpdf/cache -type f ! -name .htaccess \
		-exec ${RM} -f {} \;
	;;
POST-DEINSTALL)
	(cd ${CT_WEBDIR}
	for d in ${CT_DIRS}; do
		${RMDIR} $d >/dev/null 2>&1
	done)
	${RMDIR} ${CT_WEBDIR} >/dev/null 2>&1
	;;
esac