#!/bin/bash gitlab_version="13.11.1" # sha256sum found here: https://packages.gitlab.com/gitlab gitlab_debian_version="buster" gitlab_x86_64_buster_source_sha256="75c5a1ea074f1ff64fc74c25b0c566392c387e9f211b4398b74c4937f71a8d87" gitlab_arm64_buster_source_sha256="52105f98a465e647889e4ef4ce6817078184eb3651914b9b392a0910ff180da5" gitlab_arm_buster_source_sha256="d7886ff2d8bee023d4d0c52734f27ea4b8c066446493f932592f25f2fcf2b602" architecture=$(ynh_app_setting_get --app="$app" --key=architecture) if [ "$architecture" = "x86-64" ]; then gitlab_source_sha256=$gitlab_x86_64_buster_source_sha256 elif [ "$architecture" = "arm64" ]; then gitlab_source_sha256=$gitlab_arm64_buster_source_sha256 elif [ "$architecture" = "arm" ]; then gitlab_source_sha256=$gitlab_arm_buster_source_sha256 fi gitlab_filename="gitlab-ce-${gitlab_version}.deb" # Action to do in case of failure of the package_check package_check_action() { ynh_backup_if_checksum_is_different --file="$config_path/gitlab.rb" cat <> "$config_path/gitlab.rb" # Last chance to fix Gitlab package['modify_kernel_parameters'] = false EOF ynh_store_file_checksum --file="$config_path/gitlab.rb" }