application-amicale-serveur/dashboard/dashboard_update.sh
2020-08-08 15:15:17 +02:00

15 lines
No EOL
294 B
Bash
Executable file

#!/bin/bash
# Update washing machines
cd "$HOME"/public_html/v2/washinsa && ./washinsa_update.sh
cd "$HOME"/public_html/v2/dashboard || exit
source ../venv/bin/activate
# Update the dashboard with the new machine list
touch lock
python3 dashboard_handler.py > log 2> err
rm lock
deactivate