1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-06 16:00:28 +01:00

Update wgd.sh

This commit is contained in:
Donald Zou 2024-08-02 18:18:31 -04:00
parent 94d9d608f7
commit 658c6554af

View File

@ -39,8 +39,8 @@ _check_and_set_venv(){
printf "[WGDashboard] Creating Python Virtual Environment under ./venv\n" printf "[WGDashboard] Creating Python Virtual Environment under ./venv\n"
{ python3 -m venv $VIRTUAL_ENV; } >> ./log/instal.txt { python3 -m venv $VIRTUAL_ENV; } >> ./log/instal.txt
fi fi
# printf "[WGDashboard] Activate Python Virtual Environment under ./venv\n" printf "[WGDashboard] Activate Python Virtual Environment under ./venv\n"
# . ${VIRTUAL_ENV}/bin/activate . ${VIRTUAL_ENV}/bin/activate
} }
_determineOS(){ _determineOS(){
@ -206,9 +206,9 @@ install_wgd(){
fi fi
_check_and_set_venv _check_and_set_venv
printf "[WGDashboard] Upgrading Python Package Manage (PIP)\n" printf "[WGDashboard] Upgrading Python Package Manage (PIP)\n"
{ date; ./venv/bin/python3 -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" printf "[WGDashboard] Installing latest Python dependencies\n"
{ date; ./venv/bin/python3 -m pip install -r requirements.txt ; printf "\n\n"; } >> ./log/install.txt { date; python3 -m pip install -r requirements.txt ; printf "\n\n"; } >> ./log/install.txt
printf "[WGDashboard] WGDashboard installed successfully!\n" printf "[WGDashboard] WGDashboard installed successfully!\n"
printf "[WGDashboard] Enter ./wgd.sh start to start the dashboard\n" printf "[WGDashboard] Enter ./wgd.sh start to start the dashboard\n"
} }