]> git.gag.com Git - debian/sudo/blob - debian/sudo.preinst
try differently
[debian/sudo] / debian / sudo.preinst
1 #!/bin/sh -e
2
3 case "$1" in
4   install|upgrade)
5     if dpkg --compare-versions "$2" le "1.7.4p4-4"; then
6
7       SUDOERS="/etc/sudoers"
8
9       if [ -e "$SUDOERS" ]; then
10         md5sum="$(md5sum $SUDOERS | sed -e 's/ .*//')"
11         if [ "$md5sum" = "c5dab0f2771411ed7e67d6dab60a311f" ]; then
12             # move unchanged sudoers file to avoid conffile question
13             mv "$SUDOERS" "$SUDOERS.pre-conffile"
14         fi
15       fi
16     fi
17   ;;
18 esac
19
20 #DEBHELPER#