1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-10 12:39:15 +00:00

add debianization scripts based on work by Florent USSEIL

This commit is contained in:
Andrew Dolgov
2011-11-11 00:02:53 +04:00
parent 17140b71ed
commit d0cafcf4a0
31 changed files with 683 additions and 0 deletions

48
debian/tt-rss-common.postinst vendored Normal file
View File

@@ -0,0 +1,48 @@
#!/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/icons/ ]; then
install -d -m775 -gwww-data /usr/share/tt-rss/www/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
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
exit 0
#DEBHELPER#