diff options
author | Dave Olson <olson@cumulusnetworks.com> | 2017-06-23 14:07:35 -0700 |
---|---|---|
committer | Dave Olson <olson@cumulusnetworks.com> | 2017-06-30 13:46:36 -0700 |
commit | 19008ab68d9d504aa58eb34d5f564755a1613b8b (patch) | |
tree | 94ced6d12c492aef6b904bac0d9069008c36d5f9 /debian/libnss-tacplus.prerm | |
parent | 6f721d9b26465ffd0e05a2f075ad76dd70c4fe8c (diff) | |
download | libnss-tacplus-19008ab68d9d504aa58eb34d5f564755a1613b8b.tar.gz libnss-tacplus-19008ab68d9d504aa58eb34d5f564755a1613b8b.zip |
Fixed remove to clean up plugin entries in nsswitch.conf
We weren't removing the tacplus plugin from nsswitch.conf on package remove,
now we do.
Also cleaned up a bit and use \s instead of [ \t] for whitespace.
For postinst, moved into configure case where it belonged.
Updated changelog for recent fixes and bumped version
Diffstat (limited to 'debian/libnss-tacplus.prerm')
-rw-r--r-- | debian/libnss-tacplus.prerm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/libnss-tacplus.prerm b/debian/libnss-tacplus.prerm new file mode 100644 index 0000000..c47a314 --- /dev/null +++ b/debian/libnss-tacplus.prerm @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +if [ "$1" = remove ]; then + # Undo the addition of the plugin + if [ -e "/etc/nsswitch.conf" ]; then + sed -i -e '/^passwd:.*tacplus\s/s/tacplus\s//' \ + /etc/nsswitch.conf || true # don't prevent remove on error + fi +fi + +#DEBHELPER# |