2020-06-23 13:28:57 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-07-04 00:24:20 +02:00
|
|
|
gitlab_version="11.11.5"
|
|
|
|
|
2020-04-22 19:50:43 +02:00
|
|
|
# There is no buster version for gitlab 11.X
|
2020-07-15 11:02:10 +02:00
|
|
|
gitlab_debian_version="stretch"
|
2020-04-22 19:50:43 +02:00
|
|
|
|
2020-07-15 11:02:10 +02:00
|
|
|
gitlab_x86_64_stretch_source_sha256="1ee3d6e8d2cc198f5466de0884c03f6016299db24859126af9a191501dbdef10"
|
2019-07-04 00:24:20 +02:00
|
|
|
|
2020-07-15 11:02:10 +02:00
|
|
|
gitlab_arm_stretch_source_sha256="366e12b1f3d3b1694fcb6f13da9de908360ba93f75768d97e8d01e61e8652705"
|
|
|
|
|
|
|
|
architecture=$(ynh_app_setting_get --app="$app" --key=architecture)
|
|
|
|
|
|
|
|
if [ "$architecture" = "x86-64" ]; then
|
|
|
|
gitlab_source_sha256=$gitlab_x86_64_stretch_source_sha256
|
|
|
|
elif [ "$architecture" = "arm" ]; then
|
|
|
|
gitlab_source_sha256=$gitlab_arm_stretch_source_sha256
|
|
|
|
fi
|
2019-07-04 00:24:20 +02: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() {
|
2020-05-02 01:44:36 +02:00
|
|
|
local sysctl_file="$final_path/embedded/cookbooks/package/resources/sysctl.rb"
|
|
|
|
ynh_replace_string --match_string="command \"sysctl -e \(.*\)\"" --replace_string="command \"sysctl -e \1 || true\"" --target_file=$sysctl_file
|
2019-07-04 20:30:29 +02:00
|
|
|
}
|
|
|
|
|