]> granicus.if.org Git - sudo/commitdiff
Remove the time stamp dir and its contents when uninstalling. We
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 1 Feb 2014 13:30:40 +0000 (06:30 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 1 Feb 2014 13:30:40 +0000 (06:30 -0700)
currently leave the lecture status files installed until there is
a better way to detect upgrades.

sudo.pp

diff --git a/sudo.pp b/sudo.pp
index 9974ab06af6563859f1d0306acae7f570710648c..22eb52e8d4509f009c8df6f13927fc63c29a878c 100644 (file)
--- 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