debian: add synchronization scripts for w.c.s. instances
This commit is contained in:
parent
7b174d9ce0
commit
899b810e3d
|
@ -1,4 +1,5 @@
|
|||
debian/bijoe-manage /usr/bin
|
||||
debian/settings.py /etc/bijoe
|
||||
debian/debian_config.py /usr/lib/bijoe
|
||||
debian/import-wcs-data.sh /usr/lib/bijoe
|
||||
README.rst /usr/share/doc/bijoe
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
MAILTO=root
|
||||
|
||||
0 * * * * bijoe /usr/lib/bijoe/import-wcs-data.sh
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
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 || cat $LOG
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue