actually remove temporary file on installation success
[debian/sudo] / debian / sudo-ldap.postinst
index 77b52844897b8314a5919c330e36bacd326079c0..949a511b99ab31b6bdb0e50aca13e09501eb58e1 100644 (file)
@@ -58,9 +58,7 @@ 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');
-}
+# if we've gotten this far .. remove the saved, unchanged old sudoers file
+system ('rm -f /etc/sudoers.pre-conffile');
 
 print "";