$OpenBSD: patch-installer_linux_zarafa-client-update_cron,v 1.4 2012/06/19 10:25:05 ajacoutot Exp $
--- installer/linux/zarafa-client-update.cron.orig	Mon Jun 18 13:21:31 2012
+++ installer/linux/zarafa-client-update.cron	Tue Jun 19 11:24:27 2012
@@ -1,16 +1,16 @@
 #!/bin/sh
 
-CONFIG=/etc/zarafa/server.cfg
+CONFIG=${SYSCONFDIR}/zarafa/server.cfg
 test -f ${CONFIG} || exit 0
 
 LOGPATH=$(grep -w client_update_log_path ${CONFIG} | grep -v \# | cut -d= -f2 | sed -e 's/[[:blank:]\r]//g')
 if test -z "${LOGPATH}"; then
-	LOGPATH=/var/lib/zarafa/client
+	LOGPATH=/var/db/zarafa/client
 fi
 if ! test -r "${LOGPATH}"; then
 	exit 0
 fi
-LOGPATH=$(readlink -e ${LOGPATH})
+LOGPATH=$(readlink -f ${LOGPATH})
 if test -z "${LOGPATH}"; then
 	exit 0
 fi
@@ -19,5 +19,5 @@ if test -n ${LOGPATH} -a ${PATHDEPTH} -gt 2 -a -d ${LO
 	# remove all files older than 14 days
 	find ${LOGPATH} -mindepth 2 -maxdepth 2 -type f -ctime +14 -exec rm {} \;
 	# remove all empty directories
-	find ${LOGPATH} -mindepth 1 -maxdepth 1 -type d -exec rmdir --ignore-fail-on-non-empty {} \;
+	find ${LOGPATH} -maxdepth 1 -type d -exec rmdir {} 2>/dev/null \;
 fi
