sudo (1.6.9p17-3) UNRELEASED; urgency=low
- * fix ldap config file path for sudo-ldap package, closes: #430826
+ * fix ldap config file path for sudo-ldap package, including creating
+ a symlink in postinst and cleaning it up in postrm for the sudo-ldap
+ package, closes: #430826
-- Bdale Garbee <bdale@gag.com> Wed, 11 Mar 2009 10:44:21 -0600
print "Creating group 'sudo' with gid = $gid\n";
system("groupadd -g $gid sudo");
-# create symlink to ease transition to new path for ldap config
-# if old config file exists and new one doesn't
-if (-e "/etc/ldap/ldap.conf" && ! -e "/etc/sudo-ldap.conf") {
- system("ln -s ldap/ldap.conf /etc/sudo-ldap.conf");
-}
-
print "";
print "Creating group 'sudo' with gid = $gid\n";
system("groupadd -g $gid sudo");
+# create symlink to ease transition to new path for ldap config
+# if old config file exists and new one doesn't
+if (-e "/etc/ldap/ldap.conf" && ! -e "/etc/sudo-ldap.conf") {
+ system("ln -s ldap/ldap.conf /etc/sudo-ldap.conf");
+}
+
print "";
--- /dev/null
+#!/bin/sh -e
+
+case "$1" in
+ purge)
+ rm -f /etc/sudo-ldap.conf
+ ;;
+
+ remove|upgrade|deconfigure)
+ ;;
+
+ failed-upgrade)
+ ;;
+
+ *)
+ echo "unknown argument --> $1" >&2
+ exit 0
+ ;;
+esac
+
+#DEBHELPER#