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-12 01:19:55 -04:00
parent e86d1a4c7a
commit 8a7df4ba9f

View File

@ -180,9 +180,6 @@ install_wgd(){
else else
printf "[WGDashboard] \xE2\x9C\x94 Python is installed\n" printf "[WGDashboard] \xE2\x9C\x94 Python is installed\n"
fi fi
_installPythonVenv
_installPythonPip
version_pass=$(python3 -c 'import sys; print("1") if (sys.version_info.major == 3 and sys.version_info.minor >= 10) else print("0");') version_pass=$(python3 -c 'import sys; print("1") if (sys.version_info.major == 3 and sys.version_info.minor >= 10) else print("0");')
if [ $version_pass == "0" ] if [ $version_pass == "0" ]
@ -191,6 +188,12 @@ install_wgd(){
exit 1 exit 1
fi fi
_installPythonVenv
_installPythonPip
if [ ! -d "db" ] if [ ! -d "db" ]
then then
printf "[WGDashboard] Creating ./db folder\n" printf "[WGDashboard] Creating ./db folder\n"