Browse Source

Fix venv path

Arnaud Vergnet 3 years ago
parent
commit
5eb7bcf7b4

+ 2
- 2
dashboard/dashboard_update.sh View File

@@ -1,12 +1,12 @@
1 1
 #!/bin/bash
2 2
 
3
-source venv/bin/activate
4
-
5 3
 # Update washing machines
6 4
 cd "$HOME"/public_html/v2/washinsa && ./washinsa_update.sh
7 5
 
8 6
 cd "$HOME"/public_html/v2/dashboard || exit
9 7
 
8
+source ../venv/bin/activate
9
+
10 10
 # Update the dashboard with the new machine list
11 11
 touch lock
12 12
 python3 dashboard_handler.py > log 2> err

+ 1
- 1
facebook/facebook_update.sh View File

@@ -1,6 +1,6 @@
1 1
 #!/bin/bash
2 2
 
3
-source venv/bin/activate
3
+source ../venv/bin/activate
4 4
 
5 5
 touch lock
6 6
 python3 facebook_handler.py > log 2> err

+ 1
- 1
menu/menu_update.sh View File

@@ -1,6 +1,6 @@
1 1
 #!/bin/bash
2 2
 
3
-source venv/bin/activate
3
+source ../venv/bin/activate
4 4
 
5 5
 touch lock
6 6
 curl "https://webservices-v2.crous-mobile.fr/ws/v1/regions/5/restaurants/114/menus" > menu_data.json && python3 menu_handler.py > log 2> err

+ 1
- 1
washinsa/washinsa_update.sh View File

@@ -1,6 +1,6 @@
1 1
 #!/bin/bash
2 2
 
3
-source venv/bin/activate
3
+source ../venv/bin/activate
4 4
 
5 5
 touch lock
6 6
 python3 washinsa_handler.py > log 2> err

Loading…
Cancel
Save