From: Bdale Garbee Date: Sun, 6 Jul 2008 06:05:32 +0000 (-0600) Subject: oops, we need to restore the sudo-ldap init.d too! X-Git-Tag: debian/1.6.9p17-1~5 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=d89378b89dec79694ac712181c63445d9bdb1c82;p=debian%2Fsudo oops, we need to restore the sudo-ldap init.d too! --- diff --git a/debian/rules b/debian/rules index 562b523..365c062 100755 --- a/debian/rules +++ b/debian/rules @@ -103,8 +103,7 @@ binary-arch: build install dh_testroot dh_installdocs dh_installexamples -A sudoers - dh_installinit -psudo - dh_installinit -psudo-ldap + dh_installinit -psudo -psudo-ldap dh_installmanpages fnmatch.3 dh_installinfo -A dh_installchangelogs CHANGES diff --git a/debian/sudo-ldap.init.d b/debian/sudo-ldap.init.d new file mode 100644 index 0000000..cdd54db --- /dev/null +++ b/debian/sudo-ldap.init.d @@ -0,0 +1,31 @@ +#! /bin/sh + +### BEGIN INIT INFO +# Provides: sudo +# Required-Start: $local_fs $remote_fs +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO + +N=/etc/init.d/sudo + +set -e + +case "$1" in + start) + # make sure privileges don't persist across reboots + if [ -d /var/run/sudo ] + then + find /var/run/sudo -exec touch -t 198501010000 '{}' \; + fi + ;; + stop|reload|restart|force-reload) + ;; + *) + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0