[Da-tools-commits] ./debian/userdir-ldap-cgi r112: Install a cron job to get rid of old sessions
Peter Palfrader
peter at palfrader.org
Tue Sep 16 14:39:55 UTC 2008
------------------------------------------------------------
revno: 112
committer: Peter Palfrader <peter at palfrader.org>
branch nick: userdir-ldap-cgi
timestamp: Tue 2008-09-16 16:39:55 +0200
message:
Install a cron job to get rid of old sessions
added:
debian/cron.daily
modified:
debian/changelog
debian/rules
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog 2008-09-16 14:29:40 +0000
+++ b/debian/changelog 2008-09-16 14:39:55 +0000
@@ -1,3 +1,9 @@
+userdir-ldap-cgi (0.3.20) unstable; urgency=low
+
+ * Install a cron job to get rid of old sessions.
+
+ -- Peter Palfrader <weasel at debian.org> Tue, 16 Sep 2008 16:39:48 +0200
+
userdir-ldap-cgi (0.3.19) unstable; urgency=low
* Do not HTML escape stuff we just got from the user before
=== added file 'debian/cron.daily'
--- a/debian/cron.daily 1970-01-01 00:00:00 +0000
+++ b/debian/cron.daily 2008-09-16 14:39:55 +0000
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+if [ -d /var/cache/userdir-ldap/web-cookies ]; then
+ find /var/cache/userdir-ldap/web-cookies -type f -mtime +1 -print0 -user www-data | xargs -0 --no-run-if-empty rm -f
+fi
=== modified file 'debian/rules'
--- a/debian/rules 2008-09-15 12:25:48 +0000
+++ b/debian/rules 2008-09-16 14:39:55 +0000
@@ -39,6 +39,7 @@
install -m 644 apache-config.txt $(i)/usr/share/doc/$(package)
dh_installchangelogs
+ dh_installcron
dh_fixperms --exclude=web-cookies
dh_compress
dh_installdeb
More information about the Da-tools-commits
mailing list