#!/bin/sh set -e case "$1" in install|upgrade) if [ -n "$2" ] && dpkg --compare-versions "$2" le "1.7.4p4-4"; then SUDOERS="/etc/sudoers" if [ -e "$SUDOERS" ]; then md5sum="$(md5sum $SUDOERS | sed -e 's/ .*//')" if [ "$md5sum" = "c310ef4892a00cca8134f6e4fcd64b6d" ] || #lenny [ "$md5sum" = "c5dab0f2771411ed7e67d6dab60a311f" ] || #squeeze [ "$md5sum" = "45437b4e86fba2ab890ac81db2ec3606" ]; then #wheezy # move unchanged sudoers file to avoid conffile question mv "$SUDOERS" "$SUDOERS.pre-conffile" fi fi fi ;; esac # Automatically added by dh_installnss/1.7 if [ "$1" = install ]; then # Signal to postinst that the NSS services should be installed, even if the package has been removed but not purged. touch "${DPKG_ROOT}/etc/nsswitch.conf.nss.${DPKG_MAINTSCRIPT_PACKAGE}-will-install" fi # End automatically added section # Automatically added by dh_installdeb/13.14.1 dpkg-maintscript-helper rm_conffile /etc/init.d/sudo 1.8.21p2-2\~ -- "$@" # End automatically added section # Automatically added by dh_installinit/13.14.1 if [ "$1" = "install" ] && [ -n "$2" ] && [ -e "/etc/init.d/sudo-ldap" ] ; then chmod +x "/etc/init.d/sudo-ldap" >/dev/null || true fi # End automatically added section