1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 07:10:09 +01:00

Update wgd.sh

This commit is contained in:
Donald Cheng Hong Zou 2021-12-25 16:08:30 -05:00
parent fc11cacd24
commit 5b47fc16d9

View File

@ -33,9 +33,9 @@ _check_and_set_venv(){
install_wgd(){
# Check Python3 version
version_pass=$(python3 -c 'import sys; print("1") if (sys.version_info.major == 3 and sys.version_info.minor >= 8) else print("0");')
version_pass=$(python3 -c 'import sys; print("1") if (sys.version_info.major == 3 and sys.version_info.minor >= 7) else print("0");')
if [ $version_pass == "0" ]
then printf "| WGDashboard required Python3.8+ |\n"
then printf "| WGDashboard required Python3.7+ |\n"
printf "%s\n" "$dashes"
exit 1
fi
@ -45,9 +45,11 @@ install_wgd(){
fi
printf "| Installing latest Python dependencies |\n"
# set up the local environment
_check_and_set_venv
${VIRTUAL_ENV}/bin/python3 -m pip install -U pip
# ${VIRTUAL_ENV}/bin/python3 -m pip install virtualenv
# set up the local environment
${VIRTUAL_ENV}/bin/python3 -m pip install -U -r requirements.txt
printf "| WGDashboard installed successfully! |\n"