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
8207afe806
commit
a3f5654816
16
src/wgd.sh
16
src/wgd.sh
@ -118,7 +118,23 @@ _installPythonVenv(){
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
case "$OS" in
|
||||||
|
ubuntu|debian)
|
||||||
{ 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
|
||||||
|
;;
|
||||||
|
centos|fedora|redhat|rehl)
|
||||||
|
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
|
fi
|
||||||
|
|
||||||
if ! $pythonExecutable -m venv -h > /dev/null 2>&1
|
if ! $pythonExecutable -m venv -h > /dev/null 2>&1
|
||||||
|
Loading…
Reference in New Issue
Block a user