diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-12-31 09:12:43 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-12-31 09:12:43 +0100 |
commit | ebd853c83ce0f03fa59d1672b86190406659d901 (patch) | |
tree | 4ae6c29cafbb6615961d9a4b79d235f3270d24a7 /debian/gnunet.postrm | |
parent | 1f489833705ee9fc66686ed3045cc5dba56dfd39 (diff) | |
download | gnunet-ebd853c83ce0f03fa59d1672b86190406659d901.tar.gz gnunet-ebd853c83ce0f03fa59d1672b86190406659d901.zip |
do not use atomic write for configuration file, we may not have permissions to do this, also should not be necessary
Diffstat (limited to 'debian/gnunet.postrm')
-rw-r--r-- | debian/gnunet.postrm | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/debian/gnunet.postrm b/debian/gnunet.postrm index 0aba484db..2c3887202 100644 --- a/debian/gnunet.postrm +++ b/debian/gnunet.postrm | |||
@@ -33,10 +33,6 @@ remove_gns() { | |||
33 | } | 33 | } |
34 | s/^(hosts:)(.*)/$1.remove($2)/e; | 34 | s/^(hosts:)(.*)/$1.remove($2)/e; |
35 | ' /etc/nsswitch.conf | 35 | ' /etc/nsswitch.conf |
36 | # remove the gns nsswitch plugins as well | ||
37 | rm -rf /usr/lib/x86_64-linux-gnu/usr/libnss_gns.so.2 | ||
38 | rm -rf /usr/lib/x86_64-linux-gnu/usr/libnss_gns4.so.2 | ||
39 | rm -rf /usr/lib/x86_64-linux-gnu/usr/libnss_gns6.so.2 | ||
40 | } | 36 | } |
41 | 37 | ||
42 | 38 | ||
@@ -81,11 +77,19 @@ case "${1}" in | |||
81 | delgroup --quiet --system --only-if-empty ${GNUNETDNS_GROUP} || true | 77 | delgroup --quiet --system --only-if-empty ${GNUNETDNS_GROUP} || true |
82 | fi | 78 | fi |
83 | 79 | ||
84 | rm -rf /var/log/gnunetd /var/lib/gnunet /etc/default/gnunet | 80 | rm -rf /var/log/gnunet.log /var/lib/gnunet /etc/default/gnunet |
85 | ;; | 81 | ;; |
86 | 82 | ||
87 | remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) | 83 | remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
88 | 84 | ||
85 | if $_LIBNSSWITCH | ||
86 | then | ||
87 | rm -rf /usr/lib/x86_64-linux-gnu/usr/libnss_gns.so.2 | ||
88 | rm -rf /usr/lib/x86_64-linux-gnu/usr/libnss_gns4.so.2 | ||
89 | rm -rf /usr/lib/x86_64-linux-gnu/usr/libnss_gns6.so.2 | ||
90 | remove_gns | ||
91 | fi | ||
92 | |||
89 | ;; | 93 | ;; |
90 | 94 | ||
91 | *) | 95 | *) |