first crude attempt .. doesn't handle failed upgrades yet
[debian/sudo] / debian / sudo-ldap.postinst
index 88e8c2c0184b5177b610261e1fa5644aec74f9a3..77b52844897b8314a5919c330e36bacd326079c0 100644 (file)
@@ -58,4 +58,9 @@ if ($gid != 27) {
 print "Creating group 'sudo' with gid = $gid\n";
 system("groupadd -g $gid sudo");
 
+# if we've gotten this fare .. remove the saved, unchanged old sudoers file
+if ( -f "/etc/sudoers.pre-conffile") {
+    system ('rm -f /etc/sudoers.pre-conffile');
+}
+
 print "";