pkgsrc/www/typolight27/DEINSTALL
taca d5aa800702 o DEINSTALL: remove .htacces under plugins/tcpdf/cache.
o make plugins/tcpdf/cache writable to web server.

Bump PKGREVISION.
2009-11-29 06:46:21 +00:00

22 lines
603 B
Text

# $NetBSD: DEINSTALL,v 1.2 2009/11/29 06:46:37 taca Exp $
TL_WEBDIR="@PREFIX@/@TL_WEBDIR@"
TL_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} ${TL_WEBDIR}/system/html -type f ! -name index.html \
-exec ${RM} -f {} \;
${FIND} ${TL_WEBDIR}/plugins/tcpdf/cache -type f ! -name .htaccess \
-exec ${RM} -f {} \;
;;
POST-DEINSTALL)
(cd ${TL_WEBDIR}
for d in ${TL_DIRS}; do
${RMDIR} $d >/dev/null 2>&1
done)
${RMDIR} ${TL_WEBDIR} >/dev/null 2>&1
;;
esac