Make pkgcloud rpm install script to always point at el repository
From gitlab-org/gitlab-ce#3188
packagecloud scripts enable repo based on detected OS flavor.
For Oracle Linux this results in creation of gitlab_gitlab-ce.repo with following content:
[gitlab_gitlab-ce]
name=gitlab_gitlab-ce
baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/ol/7/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
[gitlab_gitlab-ce-source]
name=gitlab_gitlab-ce-source
baseurl=https://packages.gitlab.com/gitlab/gitlab-ce/ol/7/SRPMS
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
I don't know how easy would this be to just alter the script provided by packagecloud and hardcode the el
repo in the script.
Is there such functionality supported?
\cc @joedamato @marin