debian: reintroduce import-wcs-data.sh (#56162)

This commit is contained in:
Frédéric Péters 2022-07-04 14:44:18 +02:00
parent 73d0966721
commit 587a7ee943
2 changed files with 12 additions and 0 deletions

View File

@ -5,3 +5,4 @@ debian/debian_config.py /usr/lib/bijoe
debian/settings.py /etc/bijoe
debian/uwsgi.ini /etc/bijoe
usr/bin/manage.py /usr/lib/bijoe
debian/import-wcs-data.sh /usr/lib/bijoe

11
debian/import-wcs-data.sh vendored Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
LOG=`tempfile`
trap "rm $LOG" EXIT
for tenant in /var/lib/bijoe/tenants/*; do
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