From 5d121fb79ef941577fe0e843ff5b5c390dfbd1ab Mon Sep 17 00:00:00 2001 From: KooshaYeganeh Date: Wed, 22 Jan 2025 18:50:03 +0330 Subject: [PATCH] add openSUSE Leap to project --- install.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index bffde8d4..5d8bc1c2 100755 --- a/install.sh +++ b/install.sh @@ -27,7 +27,7 @@ if [ ${EUID} -eq 0 ]; fi # Check if running on a supported distribution -mySUPPORTED_DISTRIBUTIONS=("AlmaLinux" "Debian GNU/Linux" "Fedora Linux" "openSUSE Tumbleweed" "Raspbian GNU/Linux" "Rocky Linux" "Ubuntu") +mySUPPORTED_DISTRIBUTIONS=("AlmaLinux" "Debian GNU/Linux" "Fedora Linux" "oapenSUSE Tumbleweed" "openSUSE Leap" "Raspbian GNU/Linux" "Rocky Linux" "Ubuntu") myCURRENT_DISTRIBUTION=$(awk -F= '/^NAME/{print $2}' /etc/os-release | tr -d '"') if [[ ! " ${mySUPPORTED_DISTRIBUTIONS[@]} " =~ " ${myCURRENT_DISTRIBUTION} " ]]; @@ -96,6 +96,15 @@ case ${myCURRENT_DISTRIBUTION} in echo "export ANSIBLE_PYTHON_INTERPRETER=/bin/python3" | sudo tee /etc/profile.d/ansible.sh >/dev/null source /etc/profile.d/ansible.sh ;; + "openSUSE Leap") + echo + echo ${myINSTALL_NOTIFICATION} + echo + sudo zypper refresh + sudo zypper install -y ${myPACKAGES_OPENSUSE} + echo "export ANSIBLE_PYTHON_INTERPRETER=/bin/python3" | sudo tee /etc/profile.d/ansible.sh >/dev/null + source /etc/profile.d/ansible.sh + ;; "AlmaLinux"|"Rocky Linux") echo echo ${myINSTALL_NOTIFICATION}