Skip to content
Snippets Groups Projects
Commit 0bc80bdb authored by Timo Aaltonen's avatar Timo Aaltonen
Browse files

libnss-sss.postinst: Migrate to use 'case' like the other postinsts.

parent 744b3e30
No related branches found
No related tags found
No related merge requests found
Pipeline #523145 failed with stages
in 17 minutes and 24 seconds
sssd (2.8.2-5) UNRELEASED; urgency=medium
* libnss-sss.postinst: Migrate to use 'case' like the other postinsts.
-- Timo Aaltonen <tjaalton@debian.org> Thu, 27 Apr 2023 17:24:24 +0300
sssd (2.8.2-4) unstable; urgency=medium
[ Sam Morris ]
......
#!/bin/sh
set -e
action="$1"
case "$1" in
configure)
if [ -n "$2" ]; then
# upgrade
version="$2"
if [ configure = "$action" ]; then
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"
# 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
fi
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment