From: Bdale Garbee Date: Sat, 12 Nov 2011 23:04:05 +0000 (-0700) Subject: actually remove temporary file on installation success X-Git-Tag: debian/1.8.3p1-2~3 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=06f3ef304c48f625bc90fd65a93e544c56bd77c1;p=debian%2Fsudo actually remove temporary file on installation success --- 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 "";