blob: b7828d7a5981bada797073755ee248c596e235eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# $NetBSD: DEINSTALL,v 1.1 2013/11/21 16:52:43 taca Exp $
CT_WEBDIR="@PREFIX@/@CT_WEBDIR@"
CT_DIRS="assets system"
case ${STAGE} in
DEINSTALL)
# remove cache files.
rm -f ${CT_WEBDIR}/assets/css/*.css
rm -f ${CT_WEBDIR}/assets/js/*.js
(cd ${CT_WEBDIR}/system/cache && rm -fr *)
(cd ${CT_WEBDIR}/system/tmp && rm -f *)
;;
POST-DEINSTALL)
(cd ${CT_WEBDIR}
for d in ${CT_DIRS}; do
for s in $d/*; do
${RMDIR} $s >/dev/null 2>&1
done
${RMDIR} $d >/dev/null 2>&1
done)
${RMDIR} ${CT_WEBDIR} >/dev/null 2>&1
;;
esac
|