https://get.gitlab.cn 脚本不支持 Amazon Linux

Summary

在 Amazon Linux 上安装极狐GitLab,提示不支持该操作系统发行版,但是访问提示信息中的 OS 支持的链接后发现又是支持的。

https://gitlab.cn/docs/en/ee/administration/package_information/supported_os.html#amazon-linux

Steps to reproduce

$ curl -fsSL https://get.gitlab.cn | /bin/bash
==> Detected OS amzn

Unfortunately, your operating system distribution and version are not supported by this script.

You can find a list of supported OSes and distributions on our website: https://docs.gitlab.cn/ee/administration/package_information/supported_os.html

Please email support@gitlab.cn and let us know if you run into any issues.

Example Project

What is the current bug behavior?

What is the expected correct behavior?

Relevant logs and/or screenshots

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes