Add support for openSUSE Tumbleweed in script.rpm.sh
Page: https://docs.gitlab.com/runner/install/linux-repository.html
Right now the install script script.rpm.sh doesn't work for openSUSE Tumbleweed.
It incorrectly resolves to the "yum" path instead of the "zypp" path.
As a workaround I used the following URL to download the repo file:
https://packages.gitlab.com/install/repositories/runner/gitlab-runner/config_file.repo?os=opensuse&dist=15.1&source=script
Fix suggestion:
Right now, the installer script uses the following expression to resolve the download URL:
"https://packages.gitlab.com/install/repositories/runner/gitlab-runner/config_file.repo?os=${os}&dist=${dist}&source=script"
In Tumbleweed "os" and "dist" values are detected using /etc/os-release.
The "os" value resolves to "opensuse-tumbleweed" so I suggest adding that case in the detect_os
function.
The "dist" value resolves to the snapshot number, this will be constantly changing so I suggest ignoring this value for Tumbleweed.