From 3c7d17a2e5fbb4deb6816378a57fb09bbd5c668f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 26 Jun 2014 06:51:52 +0200 Subject: [PATCH] Define HOME so cron task works on EL6 --- root/etc/cron.daily/qpsmtpd-db-cleanup | 2 ++ 1 file changed, 2 insertions(+) diff --git a/root/etc/cron.daily/qpsmtpd-db-cleanup b/root/etc/cron.daily/qpsmtpd-db-cleanup index 60d9f02..3d9e576 100644 --- a/root/etc/cron.daily/qpsmtpd-db-cleanup +++ b/root/etc/cron.daily/qpsmtpd-db-cleanup @@ -1,5 +1,7 @@ #!/bin/bash +HOME=/root + LOG=$(/sbin/e-smith/db configuration getprop qpsmtpd Log2Sql || echo 'disabled') if [ "$LOG" != "enabled" ]; then