From d839d8d3fa478626a6e3533a341f18176c7d1c17 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 4 Dec 2017 15:08:47 +0100 Subject: [PATCH] Move CKAN cron tasks directly to cron file --- ckan/etc/cron.d/ckan | 2 +- ckan/srv/ckan/cron-pageviews.sh | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100755 ckan/srv/ckan/cron-pageviews.sh diff --git a/ckan/etc/cron.d/ckan b/ckan/etc/cron.d/ckan index b8cedc6..1cd1c76 100644 --- a/ckan/etc/cron.d/ckan +++ b/ckan/etc/cron.d/ckan @@ -1 +1 @@ -10 * * * * ckan /srv/ckan/cron-pageviews.sh >/dev/null +10 * * * * ckan /srv/ckan/bin/paster --plugin=ckan tracking update -c /etc/ckan/ckan.ini >/dev/null && /srv/ckan/bin/paster --plugin=ckan search-index rebuild -r -c /etc/ckan/ckan.ini >/dev/null diff --git a/ckan/srv/ckan/cron-pageviews.sh b/ckan/srv/ckan/cron-pageviews.sh deleted file mode 100755 index 983bc8e..0000000 --- a/ckan/srv/ckan/cron-pageviews.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -/srv/ckan/bin/paster --plugin=ckan tracking update -c /etc/ckan/ckan.ini && \ -/srv/ckan/bin/paster --plugin=ckan search-index rebuild -r -c /etc/ckan/ckan.ini