summaryrefslogtreecommitdiff
path: root/debian/tt-rss-common.postinst
blob: 9c18ebd0b5ec32041e5e94d57b55864b0c937810 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/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#