From 2cffd355cdc63b4b0b4160701ba137b5685392d6 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, 4 insertions(+), 4 deletions(-) diff --git a/debian/import-wcs-data.sh b/debian/import-wcs-data.sh index b6fecae..a88a050 100755 --- a/debian/import-wcs-data.sh +++ b/debian/import-wcs-data.sh @@ -1,11 +1,11 @@ -#!/bin/sh +#!/bin/bash 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*}" -a -f $tenant/wcs-olap.ini ]; then + wcs-olap --all $tenant/wcs-olap.ini >$LOG 2>&1 || cat $LOG + fi done -- 2.11.0