actually remove temporary file on installation success
authorBdale Garbee <bdale@gag.com>
Sat, 12 Nov 2011 23:04:05 +0000 (16:04 -0700)
committerBdale Garbee <bdale@gag.com>
Sat, 12 Nov 2011 23:04:05 +0000 (16:04 -0700)
debian/sudo-ldap.postinst
debian/sudo.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 "";
index ff4a0804dc29340673a07a5e04f6d03824878300..454d8c7e69f0e1f78477d1a0eca32eee2fb77834 100644 (file)
@@ -52,9 +52,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 "";