mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
23 lines
910 B
Bash
23 lines
910 B
Bash
gitlab_version="12.10.0"
|
|
|
|
# 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
|
|
|
|
gitlab_arm_source_sha256="5d4b1d76997de08e9707e5cb17445a38ed832bd9995f31a5af0b87134b7f0834"
|
|
|
|
gitlab_filename="gitlab-ce-${gitlab_version}.deb"
|
|
|
|
# Action to do in case of failure of the package_check
|
|
package_check_action() {
|
|
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
|
|
}
|