application-amicale-serveur/dashboard/dashboard_update.sh

15 lines
294 B
Bash
Raw Normal View History

2020-06-24 14:38:22 +02:00
#!/bin/bash
# Update washing machines
2020-06-24 14:53:54 +02:00
cd "$HOME"/public_html/v2/washinsa && ./washinsa_update.sh
2020-06-24 14:38:22 +02:00
2020-06-24 14:55:05 +02:00
cd "$HOME"/public_html/v2/dashboard || exit
2020-08-08 15:15:17 +02:00
source ../venv/bin/activate
2020-06-24 14:38:22 +02:00
# Update the dashboard with the new machine list
touch lock
2020-06-24 18:24:48 +02:00
python3 dashboard_handler.py > log 2> err
2020-08-08 15:13:39 +02:00
rm lock
deactivate