1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-27 12:05:06 +02:00
ttrss/debian/tt-rss-common.postinst
Andrew Dolgov 010efc9b81 Revert "remove htmlpurifier"
This reverts commit c21a462d52.
2012-06-05 21:52:21 +04:00

57 lines
1.1 KiB
Bash

#!/bin/sh
set -e
PACKAGE=tt-rss-mysql
case "$1" in
configure)
# source debconf stuff
if [ -f /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
fi
echo "create misc folders"
if [ ! -d /usr/share/tt-rss/www/feed-icons/ ]; then
install -d -m775 -gwww-data /usr/share/tt-rss/www/feed-icons
fi
if [ ! -d /var/lock/tt-rss ]; then
install -d -m775 -gwww-data /var/lock/tt-rss
fi
if [ ! -d /var/cache/tt-rss/htmlpurifier ]; then
install -d -m775 -gwww-data /var/cache/tt-rss/htmlpurifier
fi
if [ ! -d /var/cache/tt-rss/magpie ]; then
install -d -m775 -gwww-data /var/cache/tt-rss/magpie
fi
if [ ! -d /var/cache/tt-rss/simplepie ]; then
install -d -m775 -gwww-data /var/cache/tt-rss/simplepie
fi
if [ ! -d /var/cache/tt-rss/export ]; then
install -d -m775 -gwww-data /var/cache/tt-rss/export
fi
if [ ! -d /var/cache/tt-rss/images ]; then
install -d -m775 -gwww-data /var/cache/tt-rss/images
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
exit 0
#DEBHELPER#