summaryrefslogtreecommitdiffstats
path: root/debian/libnss-sss.postinst
blob: e0e1e6637d7efe0e8b2c5f0388dcc19c23ea17d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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#