actually remove temporary file on installation success
[debian/sudo] / debian / sudo.postinst
index 33fd3d1d457dc2c188b61b80d2c17b1d809a68bb..454d8c7e69f0e1f78477d1a0eca32eee2fb77834 100644 (file)
@@ -52,4 +52,7 @@ if ($gid != 27) {
 print "Creating group 'sudo' with gid = $gid\n";
 system("groupadd -g $gid sudo");
 
+# if we've gotten this far .. remove the saved, unchanged old sudoers file
+system ('rm -f /etc/sudoers.pre-conffile');
+
 print "";