projects
/
debian
/
sudo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
first crude attempt .. doesn't handle failed upgrades yet
[debian/sudo]
/
debian
/
sudo-ldap.postinst
diff --git
a/debian/sudo-ldap.postinst
b/debian/sudo-ldap.postinst
index 88e8c2c0184b5177b610261e1fa5644aec74f9a3..77b52844897b8314a5919c330e36bacd326079c0 100644
(file)
--- 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");
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 "";
print "";