Projet

Général

Profil

0001-debian-reintroduce-import-wcs-data.sh-56162.patch

Frédéric Péters, 04 juillet 2022 14:45

Télécharger (1,18 ko)

Voir les différences:

Subject: [PATCH] debian: reintroduce import-wcs-data.sh (#56162)

 debian/bijoe.install      |  1 +
 debian/import-wcs-data.sh | 11 +++++++++++
 2 files changed, 12 insertions(+)
 create mode 100644 debian/import-wcs-data.sh
debian/bijoe.install
5 5
debian/settings.py        /etc/bijoe
6 6
debian/uwsgi.ini          /etc/bijoe
7 7
usr/bin/manage.py         /usr/lib/bijoe
8
debian/import-wcs-data.sh /usr/lib/bijoe
debian/import-wcs-data.sh
1
#!/bin/bash
2

  
3
LOG=`tempfile`
4

  
5
trap "rm $LOG" EXIT
6

  
7
for tenant in /var/lib/bijoe/tenants/*; do
8
    if [ -n "${tenant##*.invalid*}" -a -f $tenant/wcs-olap.ini ]; then
9
        wcs-olap --all $tenant/wcs-olap.ini >$LOG 2>&1 || cat $LOG
10
    fi
11
done
0
-