summaryrefslogtreecommitdiffstats
path: root/debian/libnss-sss.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/libnss-sss.postinst')
-rwxr-xr-xdebian/libnss-sss.postinst27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/libnss-sss.postinst b/debian/libnss-sss.postinst
new file mode 100755
index 0000000..e0e1e66
--- /dev/null
+++ b/debian/libnss-sss.postinst
@@ -0,0 +1,27 @@
+#!/bin/sh
+set -e
+
+case "$1" in
+ configure)
+ if [ -n "$2" ]; then
+ # upgrade
+ version="$2"
+
+ # fix automount typo
+ if dpkg --compare-versions $version lt "2.2.3-3"; then
+ sed -i 's/automounter/automount/' "${DPKG_ROOT}/etc/nsswitch.conf"
+ fi
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+
+#DEBHELPER#