X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Fsudo-ldap.preinst;h=1dfaa0295d53cfe2ac3921ec94247a5cdd78a244;hb=2ba52fa36bd6e2bd0aae1675c88863b3bb1003d7;hp=2befe581492d4c9eae796e46c18ccba9b9e5267e;hpb=544df7213a8af22a77dad008d4de389147a093d0;p=debian%2Fsudo diff --git a/debian/sudo-ldap.preinst b/debian/sudo-ldap.preinst index 2befe58..1dfaa02 100644 --- a/debian/sudo-ldap.preinst +++ b/debian/sudo-ldap.preinst @@ -6,14 +6,13 @@ case "$1" in SUDOERS="/etc/sudoers" - [ -e "$SUDOERS" ] || return 0 - - md5sum="$(md5sum $SUDOERS | sed -e 's/ .*//')" - if [ "$md5sum" = "c5dab0f2771411ed7e67d6dab60a311f" ]; then - # move unchanged sudoers file to avoid conffile question - mv "$SUDOERS" "$SUDOERS.pre-conffile" + if [ -e "$SUDOERS" ]; then + md5sum="$(md5sum $SUDOERS | sed -e 's/ .*//')" + if [ "$md5sum" = "c5dab0f2771411ed7e67d6dab60a311f" ]; then + # move unchanged sudoers file to avoid conffile question + mv "$SUDOERS" "$SUDOERS.pre-conffile" + fi fi - fi ;; esac