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-16 03:32:28 -04:00
parent aa1d0aabd2
commit 798a3632cf

View File

@ -100,8 +100,6 @@ _installPython(){
_installPythonVenv(){ _installPythonVenv(){
if [ "$pythonExecutable" = "python3" ]; then if [ "$pythonExecutable" = "python3" ]; then
if ! $pythonExecutable -m venv -h > /dev/null 2>&1
then
case "$OS" in case "$OS" in
ubuntu|debian) ubuntu|debian)
{ sudo apt update ; sudo apt-get install -y python3-venv; printf "\n\n"; } &>> ./log/install.txt { sudo apt update ; sudo apt-get install -y python3-venv; printf "\n\n"; } &>> ./log/install.txt
@ -119,7 +117,6 @@ _installPythonVenv(){
kill -s TERM $TOP_PID kill -s TERM $TOP_PID
;; ;;
esac esac
fi
else else
{ sudo apt-get update; sudo apt-get install ${pythonExecutable}-venv; } &>> ./log/install.txt { sudo apt-get update; sudo apt-get install ${pythonExecutable}-venv; } &>> ./log/install.txt
fi fi