aboutsummaryrefslogtreecommitdiff
path: root/debian/libtalerexchange.postinst
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2023-12-05 22:45:43 +0900
committerChristian Grothoff <grothoff@gnunet.org>2023-12-05 22:45:43 +0900
commit4b4b0b9c48cb501e0afbe2e940135675f5d615a6 (patch)
tree94c2ec3e150501a57d9c0ea044716816ac037e46 /debian/libtalerexchange.postinst
parentefafdf44d91779d89ebd86c3d0454493bc2603f4 (diff)
-fix /etc/taler/taler.conf permissions in debian package, bump required GNUnet version
Diffstat (limited to 'debian/libtalerexchange.postinst')
-rw-r--r--debian/libtalerexchange.postinst28
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/libtalerexchange.postinst b/debian/libtalerexchange.postinst
new file mode 100644
index 000000000..40b4be061
--- /dev/null
+++ b/debian/libtalerexchange.postinst
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+case "${1}" in
+configure)
+
+ if ! dpkg-statoverride --list /etc/taler/taler.conf >/dev/null 2>&1; then
+ dpkg-statoverride --add --update \
+ root root 644 \
+ /etc/taler/taler.conf
+ fi
+
+ ;;
+
+abort-upgrade | abort-remove | abort-deconfigure) ;;
+
+*)
+ echo "postinst called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0