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

View File

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