From 5eb7bcf7b42f00f6145c51fea2fdfceed230b107 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Sat, 8 Aug 2020 15:15:17 +0200 Subject: [PATCH] Fix venv path --- dashboard/dashboard_update.sh | 4 ++-- facebook/facebook_update.sh | 2 +- menu/menu_update.sh | 2 +- washinsa/washinsa_update.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dashboard/dashboard_update.sh b/dashboard/dashboard_update.sh index 9957a43..cc06d47 100755 --- a/dashboard/dashboard_update.sh +++ b/dashboard/dashboard_update.sh @@ -1,12 +1,12 @@ #!/bin/bash -source venv/bin/activate - # 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 diff --git a/facebook/facebook_update.sh b/facebook/facebook_update.sh index 368969f..4feab80 100755 --- a/facebook/facebook_update.sh +++ b/facebook/facebook_update.sh @@ -1,6 +1,6 @@ #!/bin/bash -source venv/bin/activate +source ../venv/bin/activate touch lock python3 facebook_handler.py > log 2> err diff --git a/menu/menu_update.sh b/menu/menu_update.sh index 3440c98..5a08e07 100755 --- a/menu/menu_update.sh +++ b/menu/menu_update.sh @@ -1,6 +1,6 @@ #!/bin/bash -source venv/bin/activate +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 diff --git a/washinsa/washinsa_update.sh b/washinsa/washinsa_update.sh index 1475e58..1f2019c 100755 --- a/washinsa/washinsa_update.sh +++ b/washinsa/washinsa_update.sh @@ -1,6 +1,6 @@ #!/bin/bash -source venv/bin/activate +source ../venv/bin/activate touch lock python3 washinsa_handler.py > log 2> err