From aacfe9347af14e1eacea8a8c6f6d896b9863d6da Mon Sep 17 00:00:00 2001 From: Mark Jacobson <52427991+marksparkza@users.noreply.github.com> Date: Fri, 27 Aug 2021 10:06:03 +0200 Subject: [PATCH] Set working dir for publishing jobs We're no longer installing the ODP as a package, so the publishing jobs must start in the ODP directory to be able to find the 'odp' package. --- deploy/datacite-publisher/crontab | 2 +- deploy/odp-publisher/crontab | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy/datacite-publisher/crontab b/deploy/datacite-publisher/crontab index 4cbf9943..894378a4 100644 --- a/deploy/datacite-publisher/crontab +++ b/deploy/datacite-publisher/crontab @@ -1 +1 @@ -*/DATACITE_PUBLISH_JOB_INTERVAL * * * * /usr/local/bin/python -m odp.publish.datacite >/tmp/stdout 2>&1 +*/DATACITE_PUBLISH_JOB_INTERVAL * * * * cd /srv/Open-Data-Platform && /usr/local/bin/python -m odp.publish.datacite >/tmp/stdout 2>&1 diff --git a/deploy/odp-publisher/crontab b/deploy/odp-publisher/crontab index e7f9c973..e781bf6c 100644 --- a/deploy/odp-publisher/crontab +++ b/deploy/odp-publisher/crontab @@ -1 +1 @@ -*/ODP_PUBLISH_JOB_INTERVAL * * * * /usr/local/bin/python -m odp.publish.main >/tmp/stdout 2>&1 +*/ODP_PUBLISH_JOB_INTERVAL * * * * cd /srv/Open-Data-Platform && /usr/local/bin/python -m odp.publish.main >/tmp/stdout 2>&1