From 99655cab33c9f4b53fb72099ba55eecd56105924 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Fri, 16 Aug 2024 17:35:38 -0400 Subject: [PATCH] Update wgd.sh --- src/wgd.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/wgd.sh b/src/wgd.sh index e35ebc2..c60cb53 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -123,18 +123,18 @@ _installPythonVenv(){ ubuntu|debian) { sudo apt-get update; sudo apt-get install ${pythonExecutable}-venv; } &>> ./log/install.txt ;; - centos|fedora|redhat|rhel) - if command -v dnf &> /dev/null; then - { sudo dnf install -y ${pythonExecutable}-virtualenv; printf "\n\n"; } >> ./log/install.txt - else - { sudo yum install -y ${pythonExecutable}-virtualenv; printf "\n\n"; } >> ./log/install.txt - fi - ;; - *) - printf "[WGDashboard] %s Sorry, your OS is not supported. Currently the install script only support Debian-based, Red Hat-based OS.\n" "$heavy_crossmark" - printf "%s\n" "$helpMsg" - kill $TOP_PID - ;; +# centos|fedora|redhat|rhel) +# if command -v dnf &> /dev/null; then +# { sudo dnf install -y ${pythonExecutable}-virtualenv; printf "\n\n"; } >> ./log/install.txt +# else +# { sudo yum install -y ${pythonExecutable}-virtualenv; printf "\n\n"; } >> ./log/install.txt +# fi +# ;; +# *) +# printf "[WGDashboard] %s Sorry, your OS is not supported. Currently the install script only support Debian-based, Red Hat-based OS.\n" "$heavy_crossmark" +# printf "%s\n" "$helpMsg" +# kill $TOP_PID +# ;; esac fi