From: Todd C. Miller Date: Sat, 1 Feb 2014 13:30:40 +0000 (-0700) Subject: Remove the time stamp dir and its contents when uninstalling. We X-Git-Tag: SUDO_1_8_10^2~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=17ab16824bc78f68c733ed063b151d70b170141e;p=sudo Remove the time stamp dir and its contents when uninstalling. We currently leave the lecture status files installed until there is a better way to detect upgrades. --- diff --git a/sudo.pp b/sudo.pp index 9974ab06a..22eb52e8d 100644 --- a/sudo.pp +++ b/sudo.pp @@ -365,7 +365,11 @@ still allow people to get their work done." exit 0; ' -%preun [deb] +%preun + # Remove the time stamp dir and its contents + # We currently leave the lecture status files installed + rm -rf %{rundir}/ts +%if [deb] set -e # Remove the /etc/ldap/ldap.conf -> /etc/sudo-ldap.conf symlink if @@ -374,3 +378,4 @@ still allow people to get their work done." X"`readlink /etc/sudo-ldap.conf 2>/dev/null`" = X"/etc/ldap/ldap.conf"; then rm -f /etc/sudo-ldap.conf fi +%endif