X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Fsudo-ldap.postinst;h=77b52844897b8314a5919c330e36bacd326079c0;hb=89bdb5a1eb188f02f864d08adce0e4cfbd16dfe3;hp=88e8c2c0184b5177b610261e1fa5644aec74f9a3;hpb=ffea17a29fe2658503bfa165c4b5c12a75a8cbdc;p=debian%2Fsudo diff --git a/debian/sudo-ldap.postinst b/debian/sudo-ldap.postinst index 88e8c2c..77b5284 100644 --- a/debian/sudo-ldap.postinst +++ b/debian/sudo-ldap.postinst @@ -58,4 +58,9 @@ 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'); +} + print "";