X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Fsudo-ldap.postinst;h=0a9a5a425291902bb3326c17b83494c45a4ccd89;hb=fcdd49862612a5b21382208f03902066bae282ec;hp=949a511b99ab31b6bdb0e50aca13e09501eb58e1;hpb=06f3ef304c48f625bc90fd65a93e544c56bd77c1;p=debian%2Fsudo diff --git a/debian/sudo-ldap.postinst b/debian/sudo-ldap.postinst index 949a511..0a9a5a4 100644 --- a/debian/sudo-ldap.postinst +++ b/debian/sudo-ldap.postinst @@ -32,6 +32,9 @@ if (-e "/etc/ldap/ldap.conf" && ! -e "/etc/sudo-ldap.conf") { system("ln -s ldap/ldap.conf /etc/sudo-ldap.conf"); } +# if we've gotten this far .. remove the saved, unchanged old sudoers file +system ('rm -f /etc/sudoers.pre-conffile'); + # make sure we have a sudo group exit 0 if getgrnam("sudo"); # we're finished if there is a group sudo @@ -58,7 +61,4 @@ 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 "";