Use venv with scripts
Esse commit está contido em:
pai
80fa94b0f0
commit
71ef3b0a05
4 arquivos alterados com 17 adições e 1 exclusões
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
source venv/bin/activate
|
||||
|
||||
# Update washing machines
|
||||
cd "$HOME"/public_html/v2/washinsa && ./washinsa_update.sh
|
||||
|
||||
|
@ -9,3 +11,5 @@ cd "$HOME"/public_html/v2/dashboard || exit
|
|||
touch lock
|
||||
python3 dashboard_handler.py > log 2> err
|
||||
rm lock
|
||||
|
||||
deactivate
|
|
@ -1,5 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
source venv/bin/activate
|
||||
|
||||
touch lock
|
||||
python3 facebook_handler.py > log 2> err
|
||||
rm lock
|
||||
|
||||
deactivate
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
source venv/bin/activate
|
||||
|
||||
touch lock
|
||||
curl "https://webservices-v2.crous-mobile.fr/ws/v1/regions/5/restaurants/114/menus" > menu_data.json && python3 menu_handler.py > log 2> err
|
||||
rm lock
|
||||
|
||||
deactivate
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
source venv/bin/activate
|
||||
|
||||
touch lock
|
||||
python3 washinsa_handler.py > log 2> err
|
||||
rm lock
|
||||
|
||||
deactivate
|
||||
|
|
Carregando…
Referência em uma nova issue