From 72cd3748bd7a0acb4587b90ca5c8fea17476ce44 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 16 Sep 2008 16:39:55 +0200 Subject: [PATCH] Install a cron job to get rid of old sessions --- debian/changelog | 6 ++++++ debian/cron.daily | 7 +++++++ debian/rules | 1 + 3 files changed, 14 insertions(+) create mode 100644 debian/cron.daily diff --git a/debian/changelog b/debian/changelog index a88baf7..08400c2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 diff --git a/debian/cron.daily b/debian/cron.daily new file mode 100644 index 0000000..5204a96 --- /dev/null +++ b/debian/cron.daily @@ -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 diff --git a/debian/rules b/debian/rules index dfe5385..2aa9fd1 100755 --- a/debian/rules +++ b/debian/rules @@ -39,6 +39,7 @@ binary-indep: build install -m 644 apache-config.txt $(i)/usr/share/doc/$(package) dh_installchangelogs + dh_installcron dh_fixperms --exclude=web-cookies dh_compress dh_installdeb -- 2.20.1