summaryrefslogtreecommitdiff
path: root/debian/tt-rss-pgsql.postrm
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-10-19 14:38:54 +0400
committerAndrew Dolgov <[email protected]>2012-10-19 14:38:54 +0400
commit8c25264dfd6aae0e3362823410cdfc3102a74782 (patch)
tree3bbd58372115d3113232747bf46ab36927336764 /debian/tt-rss-pgsql.postrm
parent629c7449f81b8123d87518292645ee7513986993 (diff)
remove debian stuff
Diffstat (limited to 'debian/tt-rss-pgsql.postrm')
-rw-r--r--debian/tt-rss-pgsql.postrm42
1 files changed, 0 insertions, 42 deletions
diff --git a/debian/tt-rss-pgsql.postrm b/debian/tt-rss-pgsql.postrm
deleted file mode 100644
index 85e43a283..000000000
--- a/debian/tt-rss-pgsql.postrm
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-set -e
-
-PACKAGE=tt-rss-pgsql
-
-# source debconf stuff
-if [ -f /usr/share/debconf/confmodule ]; then
- . /usr/share/debconf/confmodule
-fi
-
-# Un-configure and restart webservers
-db_get $PACKAGE/webserver || true
-WEBSERVER="$RET";
-if $WEBSERVER; then
- if [ -L /etc/apache2/conf.d/$PACKAGE.conf ]; then
- rm -f /etc/apache2/conf.d/$PACKAGE.conf
- fi
-fi
-
-if apache2ctl configtest 2>/dev/null; then
- invoke-rc.d apache2 force-reload || true
-else
- echo "apache need to be manually reloaded"
-fi
-
-# dbconfig-common
-if [ -f /usr/share/dbconfig-common/dpkg/postrm.pgsql ]; then
- . /usr/share/dbconfig-common/dpkg/postrm.pgsql
- dbc_go $PACKAGE $@
-fi
-
-if [ "$1" = "purge" ]; then
- # remove database config
- rm -f /etc/$PACKAGE/database.php
- if which ucf >/dev/null 2>&1; then
- ucf --purge /etc/$PACKAGE/database.php
- fi
- db_purge
-fi
-
-exit 0
-#DEBHELPER#