summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-03 23:14:26 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-03 23:14:26 +0100
commitd981da056e776e0756cfddb22f18308b9ab913a5 (patch)
tree53d6db5707ad00e497e1131500e58eade8fb5748 /debian
parent502c2aef9637bb1f7fd9606ccc8f1f5ea0acd3b3 (diff)
downloadexchange-d981da056e776e0756cfddb22f18308b9ab913a5.tar.gz
exchange-d981da056e776e0756cfddb22f18308b9ab913a5.tar.bz2
exchange-d981da056e776e0756cfddb22f18308b9ab913a5.zip
fix exchange postinst
Diffstat (limited to 'debian')
-rw-r--r--debian/taler-exchange.postrm29
-rw-r--r--debian/taler-exchange.prerm7
2 files changed, 3 insertions, 33 deletions
diff --git a/debian/taler-exchange.postrm b/debian/taler-exchange.postrm
index 6fc7c984..b2d132cf 100644
--- a/debian/taler-exchange.postrm
+++ b/debian/taler-exchange.postrm
@@ -15,40 +15,11 @@ pathfind() {
return 1
}
-apache_remove() {
- if [ diff /etc/taler-exchange/apache.conf /etc/apache2/conf-available/taler-exchange.conf >/dev/null 2>&1 ];
- then
- rm -f /etc/apache2/conf-available/taler-exchange.conf
- fi
-}
-
-nginx_remove() {
- if [ diff /etc/taler-exchange/nginx.conf /etc/nginx/conf-available/taler-exchange.conf >/dev/null 2>&1 ];
- then
- rm -f /etc/nginx/conf-available/taler-exchange.conf
- fi
-}
-
if [ -f /usr/share/debconf/confmodule ];
then
. /usr/share/debconf/confmodule
fi
-if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
- db_version 2.0
- db_get taler-exchange/reconfigure-webserver
- webservers="$RET"
- for webserver in $webservers; do
- webserver=${webserver%,}
- if [ "$webserver" = "nginx" ] ; then
- nginx_remove
- else
- apache_remove
- fi
- done
-fi
-
-
case "${1}" in
purge)
db_version 2.0
diff --git a/debian/taler-exchange.prerm b/debian/taler-exchange.prerm
index d1dd90ed..3ba9986a 100644
--- a/debian/taler-exchange.prerm
+++ b/debian/taler-exchange.prerm
@@ -2,11 +2,10 @@
set -e
-
-if [ -f /usr/share/debconf/confmodule ]; then
+if [ -f /usr/share/debconf/confmodule ];
+then
. /usr/share/debconf/confmodule
fi
-. /usr/share/dbconfig-common/dpkg/prerm
db_stop
-exit 0 \ No newline at end of file
+exit 0