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 03:02:45 -04:00
parent b9370955d6
commit 8c8c5a5826

View File

@ -134,7 +134,11 @@ _installPythonPip(){
then
case "$OS" in
ubuntu|debian)
if [ "$pythonExecutable" = "python" ]; then
{ sudo apt update ; sudo apt-get install -y python3-pip; printf "\n\n"; } &>> ./log/install.txt
else
{ sudo apt update ; sudo apt-get install -y $pythonExecutable-distutil python3-pip; printf "\n\n"; } &>> ./log/install.txt
fi
;;
centos|fedora|redhat)
if command -v dnf &> /dev/null; then
@ -155,6 +159,7 @@ _installPythonPip(){
then
printf "[WGDashboard] %s Python Package Manager (PIP) is still not installed, halting script now.\n" "$heavy_crossmark"
printf "%s\n" "$helpMsg"
exit 1
else
printf "[WGDashboard] %s Python Package Manager (PIP) is installed\n" "$heavy_checkmark"
fi