1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-06 07:50:13 +01:00

Update wgd.sh

This commit is contained in:
Donald Zou 2024-08-16 17:24:50 -04:00
parent 316545b253
commit b9832542fb

View File

@ -72,7 +72,7 @@ _determineOS(){
printf "%s\n" "$helpMsg"
kill $TOP_PID
fi
printf "[WGDashboard] OS: |%s|\n" "$OS"
printf "[WGDashboard] OS: %s\n" "$OS"
}
_installPython(){
@ -105,7 +105,7 @@ _installPythonVenv(){
ubuntu|debian)
{ sudo apt update ; sudo apt-get install -y python3-venv; printf "\n\n"; } &>> ./log/install.txt
;;
centos|fedora|redhat|rehl)
centos|fedora|redhat|rhel)
if command -v dnf &> /dev/null; then
{ sudo dnf install -y python3-virtualenv; printf "\n\n"; } >> ./log/install.txt
else
@ -123,7 +123,7 @@ _installPythonVenv(){
ubuntu|debian)
{ sudo apt-get update; sudo apt-get install ${pythonExecutable}-venv; } &>> ./log/install.txt
;;
centos|fedora|redhat|rehl)
centos|fedora|redhat|rhel)
if command -v dnf &> /dev/null; then
{ sudo dnf install -y ${pythonExecutable}-virtualenv; printf "\n\n"; } >> ./log/install.txt
else
@ -159,7 +159,7 @@ _installPythonPip(){
{ sudo apt update ; sudo apt-get install -y ${pythonExecutable}-distutil python3-pip; printf "\n\n"; } &>> ./log/install.txt
fi
;;
centos|fedora|redhat|rehl)
centos|fedora|redhat|rhel)
if command -v dnf &> /dev/null; then
{ sudo dnf install -y python3-pip; printf "\n\n"; } >> ./log/install.txt
else