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:
parent
e86d1a4c7a
commit
8a7df4ba9f
15
src/wgd.sh
15
src/wgd.sh
@ -180,16 +180,19 @@ install_wgd(){
|
|||||||
else
|
else
|
||||||
printf "[WGDashboard] \xE2\x9C\x94 Python is installed\n"
|
printf "[WGDashboard] \xE2\x9C\x94 Python is installed\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
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" ]
|
||||||
|
then
|
||||||
|
printf "[WGDashboard] WGDashboard required Python 3.10 or above\n"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
_installPythonVenv
|
_installPythonVenv
|
||||||
_installPythonPip
|
_installPythonPip
|
||||||
|
|
||||||
|
|
||||||
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" ]
|
|
||||||
then
|
|
||||||
printf "[WGDashboard] WGDashboard required Python 3.10 or above\n"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ ! -d "db" ]
|
if [ ! -d "db" ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user