summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-02-26 08:01:30 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-02-26 08:01:30 (GMT)
commit3075950f2efab5e40318413760d7067a82a2b862 (patch)
tree72d67044ef10cb58797cbd12f3d2740e81a69d72
parentb2f91d5ca34b7721a8316f5e13406ca93611d659 (diff)
downloadpublik-client-scripts-3075950f2efab5e40318413760d7067a82a2b862.zip
publik-client-scripts-3075950f2efab5e40318413760d7067a82a2b862.tar.gz
publik-client-scripts-3075950f2efab5e40318413760d7067a82a2b862.tar.bz2
strasbourg: use wcs script instead of directory as check for cron
-rw-r--r--debian/publik-strasbourg-scripts.cron.hourly4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/publik-strasbourg-scripts.cron.hourly b/debian/publik-strasbourg-scripts.cron.hourly
index 4e5807e..e2426b2 100644
--- a/debian/publik-strasbourg-scripts.cron.hourly
+++ b/debian/publik-strasbourg-scripts.cron.hourly
@@ -1,4 +1,4 @@
#! /bin/sh
-test -d /var/lib/wcs || exit 0
-sudo -u wcs wcsctl runscript --vhost *strasbourg* /usr/lib/publik/clients/strasbourg/index-formdefs-in-elasticsearch.py
+test -x /usr/bin/wcsctl || exit 0
+sudo -u wcs /usr/bin/wcsctl runscript --vhost *strasbourg* /usr/lib/publik/clients/strasbourg/index-formdefs-in-elasticsearch.py