Browse Source

Bash script check for webservice_url contents

master
Fábio Kaiser Rauber 2 years ago
parent
commit
99fcf91043
  1. 9
      charts/edemocracia/v0.4.0/templates/audienciasweb-cron.yaml

9
charts/edemocracia/v0.4.0/templates/audienciasweb-cron.yaml

@ -27,10 +27,11 @@ spec:
command: [ "/bin/bash", "-c" ]
args:
- >-
sleep $[RANDOM%120] &&
python3 /var/labhacker/audiencias/manage.py get_camara_webservice &&
python3 /var/labhacker/audiencias/manage.py prune_rooms &&
python3 /var/labhacker/audiencias/manage.py prune_presences
sleep $[RANDOM%120];
python3 /var/labhacker/audiencias/manage.py prune_rooms;
python3 /var/labhacker/audiencias/manage.py prune_presences;
[[ ! -z "$WEBSERVICE_URL" ]] &&
python3 /var/labhacker/audiencias/manage.py get_camara_webservice
env:
- name: ADMIN_EMAIL
value: {{ .Values.edemocracia.admin.email | quote }}

Loading…
Cancel
Save