mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-10-14 04:19:14 +00:00
add openSUSE Leap to project
This commit is contained in:
parent
bd055f0037
commit
5d121fb79e
1 changed files with 10 additions and 1 deletions
11
install.sh
11
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}
|
||||
|
|
Loading…
Reference in a new issue