1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gitlab_ynh.git synced 2024-09-03 18:36:35 +02:00
gitlab_ynh/scripts/upgrade.d/upgrade.last.sh

26 lines
960 B
Bash
Raw Normal View History

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:50:43 +02:00
gitlab_x86_64_debian_verion="$(lsb_release -sc)"
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"
# 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
}