local only works in functions, and now that I've unrolled the function...
authorBdale Garbee <bdale@gag.com>
Sat, 12 Nov 2011 22:44:34 +0000 (15:44 -0700)
committerBdale Garbee <bdale@gag.com>
Sat, 12 Nov 2011 22:44:34 +0000 (15:44 -0700)
debian/sudo-ldap.preinst
debian/sudo.preinst

index 286d243d7235ff8adb9650d78fac9ee7b238f2d9..2befe581492d4c9eae796e46c18ccba9b9e5267e 100644 (file)
@@ -4,11 +4,11 @@ case "$1" in
   install|upgrade)
     if dpkg --compare-versions "$2" le "1.7.4p4-4"; then
 
-      local SUDOERS="/etc/sudoers"
+      SUDOERS="/etc/sudoers"
 
       [ -e "$SUDOERS" ] || return 0
 
-      local md5sum="$(md5sum $SUDOERS | sed -e 's/ .*//')"
+      md5sum="$(md5sum $SUDOERS | sed -e 's/ .*//')"
       if [ "$md5sum" = "c5dab0f2771411ed7e67d6dab60a311f" ]; then
          # move unchanged sudoers file to avoid conffile question
           mv "$SUDOERS" "$SUDOERS.pre-conffile"
index 286d243d7235ff8adb9650d78fac9ee7b238f2d9..2befe581492d4c9eae796e46c18ccba9b9e5267e 100644 (file)
@@ -4,11 +4,11 @@ case "$1" in
   install|upgrade)
     if dpkg --compare-versions "$2" le "1.7.4p4-4"; then
 
-      local SUDOERS="/etc/sudoers"
+      SUDOERS="/etc/sudoers"
 
       [ -e "$SUDOERS" ] || return 0
 
-      local md5sum="$(md5sum $SUDOERS | sed -e 's/ .*//')"
+      md5sum="$(md5sum $SUDOERS | sed -e 's/ .*//')"
       if [ "$md5sum" = "c5dab0f2771411ed7e67d6dab60a311f" ]; then
          # move unchanged sudoers file to avoid conffile question
           mv "$SUDOERS" "$SUDOERS.pre-conffile"