From 0dfda83e450f2a5e5e84d72c6a2a3104d56e1a9a Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Fri, 16 Aug 2024 03:25:25 -0400 Subject: [PATCH] Update wgd.sh --- src/wgd.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wgd.sh b/src/wgd.sh index 80caf94..111be28 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -54,7 +54,9 @@ _check_and_set_venv(){ then printf "[WGDashboard] %s Python Virtual Environment under ./venv failed to create. Halting now.\n" "$heavy_crossmark" kill -s TERM $TOP_PID - fi + fi + + . ${VIRTUAL_ENV}/bin/activate } _determineOS(){ @@ -244,7 +246,7 @@ install_wgd(){ fi _check_and_set_venv printf "[WGDashboard] Upgrading Python Package Manage (PIP)\n" - { date; $venv_python -m pip install pip; printf "\n\n"; } >> ./log/install.txt + { date; python3 -m pip install pip; printf "\n\n"; } >> ./log/install.txt printf "[WGDashboard] Installing latest Python dependencies\n" { date; $venv_python -m pip install -r requirements.txt ; printf "\n\n"; } >> ./log/install.txt printf "[WGDashboard] WGDashboard installed successfully!\n"