summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-04-07 11:52:25 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-04-07 11:52:25 (GMT)
commit1b945a4b88aaa38e2397bd5a04c0208ad56a4cf6 (patch)
tree299c0cfec753985becc04d457adb2321eec50b32
parenta324be1c44087fe4353c67921703121215ff6fbc (diff)
downloadpublik-client-scripts-1b945a4b88aaa38e2397bd5a04c0208ad56a4cf6.zip
publik-client-scripts-1b945a4b88aaa38e2397bd5a04c0208ad56a4cf6.tar.gz
publik-client-scripts-1b945a4b88aaa38e2397bd5a04c0208ad56a4cf6.tar.bz2
strasbourg: skip if there's no strasbourg tenant
-rw-r--r--debian/publik-strasbourg-scripts.cron.hourly1
1 files changed, 1 insertions, 0 deletions
diff --git a/debian/publik-strasbourg-scripts.cron.hourly b/debian/publik-strasbourg-scripts.cron.hourly
index be4fea9..05f858d 100644
--- a/debian/publik-strasbourg-scripts.cron.hourly
+++ b/debian/publik-strasbourg-scripts.cron.hourly
@@ -1,5 +1,6 @@
#! /bin/sh
test -x /usr/bin/wcsctl || exit 0
+test -d /var/lib/wcs/*strasbourg* || exit 0
cd /var/lib/wcs/
sudo -u wcs /usr/bin/wcsctl runscript --vhost *strasbourg* /usr/lib/publik/clients/strasbourg/index-formdefs-in-elasticsearch.py