From 06f3ef304c48f625bc90fd65a93e544c56bd77c1 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Sat, 12 Nov 2011 16:04:05 -0700 Subject: [PATCH] actually remove temporary file on installation success --- debian/sudo-ldap.postinst | 6 ++---- debian/sudo.postinst | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/debian/sudo-ldap.postinst b/debian/sudo-ldap.postinst index 77b5284..949a511 100644 --- a/debian/sudo-ldap.postinst +++ b/debian/sudo-ldap.postinst @@ -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 ""; diff --git a/debian/sudo.postinst b/debian/sudo.postinst index ff4a080..454d8c7 100644 --- a/debian/sudo.postinst +++ b/debian/sudo.postinst @@ -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 ""; -- 2.39.2