2020-04-22 19:31:44 +02:00
|
|
|
gitlab_version="12.10.0"
|
2018-12-16 23:04:05 +01:00
|
|
|
|
2020-04-22 19:36:44 +02:00
|
|
|
# sha256sum found here: https://packages.gitlab.com/gitlab
|
|
|
|
|
|
|
|
if [ "$(lsb_release -sc)" = "buster" ]
|
|
|
|
then
|
|
|
|
gitlab_x86_64_source_sha256="01d8d1dd2e4ed9a378317f55ab46174d6bd77e4eb1be32d87fe7911da8f65381"
|
|
|
|
else
|
|
|
|
gitlab_x86_64_source_sha256="ed24c9bd072b6f15f7c73367df04acba3e64ee53bb3562f25e768a2dda533ca2"
|
|
|
|
fi
|
2018-12-16 23:04:05 +01:00
|
|
|
|
2020-04-22 19:31:44 +02:00
|
|
|
gitlab_arm_source_sha256="5d4b1d76997de08e9707e5cb17445a38ed832bd9995f31a5af0b87134b7f0834"
|
2019-03-16 02:38:12 +01:00
|
|
|
|
2019-03-17 20:14:56 +01:00
|
|
|
gitlab_filename="gitlab-ce-${gitlab_version}.deb"
|
2019-07-04 20:30:29 +02:00
|
|
|
|
|
|
|
# Action to do in case of failure of the package_check
|
|
|
|
package_check_action() {
|
2019-07-31 17:49:20 +02:00
|
|
|
local sysctl_file="$final_path/embedded/cookbooks/package/resources/gitlab_sysctl.rb"
|
|
|
|
if [ ! -f "$sysctl_file" ]; then
|
|
|
|
sysctl_file="$final_path/embedded/cookbooks/package/resources/sysctl.rb"
|
|
|
|
fi
|
|
|
|
ynh_replace_string --match_string="command \"sysctl -e --system\"" --replace_string="command \"sysctl -e --system || true\"" --target_file=$sysctl_file
|
2019-07-04 20:30:29 +02:00
|
|
|
}
|