From c97c2c8000ab0b4554acb4533720d1b4d50316c4 Mon Sep 17 00:00:00 2001 From: Christophe Siraut Date: Mon, 24 Sep 2018 13:58:05 +0200 Subject: [PATCH] wcs-olap: ignore .invalid tenants (#26663) --- debian/import-wcs-data.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/import-wcs-data.sh b/debian/import-wcs-data.sh index b6fecae..6f38177 100755 --- a/debian/import-wcs-data.sh +++ b/debian/import-wcs-data.sh @@ -5,7 +5,9 @@ LOG=`tempfile` trap "rm $LOG" EXIT for tenant in /var/lib/bijoe/tenants/*; do - if [ -f $tenant/wcs-olap.ini ]; then - wcs-olap --all $tenant/wcs-olap.ini >$LOG 2>&1 || cat $LOG - fi + if [ -n "${tenant##*.invalid*}" ]; then + if [ -f $tenant/wcs-olap.ini ]; then + wcs-olap --all $tenant/wcs-olap.ini >$LOG 2>&1 || cat $LOG + fi + fi done -- 2.11.0