10 if [ -f /usr
/share
/debconf
/confmodule
]; then
11 .
/usr
/share
/debconf
/confmodule
15 db_get
$PACKAGE/webserver || true
18 # webserver configuration
20 if [ ! -d /etc
/apache
2/conf.d
/ ]; then
21 install -d -m755 /etc
/apache
2/conf.d
/
24 if [ ! -e /etc
/apache
2/conf.d
/$PACKAGE.conf
]; then
25 ln -s /etc
/$PACKAGE/apache.conf
/etc
/apache
2/conf.d
/$PACKAGE.conf
26 #sed -e "s#tt-rss/www#$PACKAGE/www#" -i /etc/$PACKAGE/apache.conf
28 if apache2ctl configtest
2>/dev
/null
; then
29 invoke-rc.d apache2 force-reload || true
31 echo "apache need to be reload manualy"
36 .
/usr
/share
/dbconfig-common
/dpkg
/postinst.pgsql
37 dbc_first_version
="1.3.1"
38 dbc_generate_include
="php:/etc/$PACKAGE/database.php"
39 dbc_generate_include_owner
="root:www-data"
40 dbc_generate_include_perms
="0640"
43 echo "Install ok on http://localhost/tt-rss/"
46 abort-upgrade|abort-remove|abort-deconfigure
)
50 echo "postinst called with unknown argument \`$1'" >&2