On 11/06/2010 01:38 AM, Daniel Baumann wrote: > if cron is not installed (because rt correctly doesn't declare a depends > to it), and request-tracker3.8/install-cronjobs is answered yes, then > the postinst fails because /etc/cron.d/ is missing.
ftr: it always fails, regardless what request-tracker3.8/install-cronjobs is answered. > therefore, you should always create /etc/cron.d to make sure it exists. > will send patch after having recieved the bug number. attached. -- Address: Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist Email: daniel.baum...@panthera-systems.net Internet: http://people.panthera-systems.net/~daniel-baumann/
>From 6301b15615490afa31776803f35cbdeb31bbce79 Mon Sep 17 00:00:00 2001 From: Daniel Baumann <dan...@debian.org> Date: Sat, 6 Nov 2010 01:49:38 +0100 Subject: [PATCH] Creating /etc/cron.d directory in postinst to not fail if cron is not installed (Closes: #602570). --- debian/postinst | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/debian/postinst b/debian/postinst index 242514b..214a59b 100644 --- a/debian/postinst +++ b/debian/postinst @@ -131,6 +131,7 @@ EOF #0 * * * * www-data [ -x /usr/sbin/rt-email-dashboards-3.8 ] && /usr/sbin/rt-email-dashboards-3.8 EOF fi + mkdir -p /etc/cron.d ucf --debconf-ok $tfile /etc/cron.d/request-tracker3.8 rm $tfile } -- 1.7.2.3