summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-28 18:27:11 +0200
committerFlorian Dold <florian@dold.me>2021-08-28 18:27:11 +0200
commit830bc7ab2debe5822504e4690237c8ba77a0259e (patch)
tree3a61b7b28b2852bb03278c67af64885a38a96b5d
parent941ea7f200d30d148a6c0db5c703494769d644b9 (diff)
debian: more fixes
-rw-r--r--debian/gnunet.postrm32
1 files changed, 12 insertions, 20 deletions
diff --git a/debian/gnunet.postrm b/debian/gnunet.postrm
index 93dac87d1..4b60c570a 100644
--- a/debian/gnunet.postrm
+++ b/debian/gnunet.postrm
@@ -22,29 +22,21 @@ remove_gns() {
' /etc/nsswitch.conf
}
+_USERNAME="gnunet"
+_GROUPNAME="gnunet"
+GNUNETDNS_GROUP="gnunetdns"
+if [ -e /usr/share/debconf/confmodule ]
+then
+ . /usr/share/debconf/confmodule
+ db_version 2.0
-case "${1}" in
- purge)
- if [ -e /usr/share/debconf/confmodule ]
- then
- . /usr/share/debconf/confmodule
- db_version 2.0
+ db_get gnunet-dns/libnsswitch
+ _LIBNSSWITCH="${RET}"
+fi
- db_get gnunet-systempeer/username
- _USERNAME="${RET:-gnunet}"
-
- db_get gnunet-systempeer/groupname
- _GROUPNAME="${RET:-gnunet}"
-
- db_get gnunet-dns/libnsswitch
- _LIBNSSWITCH="${RET}"
- else
- _USERNAME="gnunet"
- _GROUPNAME="gnunet"
- fi
-
- GNUNETDNS_GROUP="gnunetdns"
+case "${1}" in
+ purge)
if $_LIBNSSWITCH
then
rm -rf /usr/lib/x86_64-linux-gnu/usr/libnss_gns.so.2