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

17 lines
700 B
Bash
Raw Normal View History

2020-02-22 19:16:31 +01:00
gitlab_version="12.8.0"
2018-12-16 23:04:05 +01:00
2020-02-22 19:16:31 +01:00
gitlab_x86_64_source_sha256="bc8a47a29a16fbeb77163a9fb6ae77f556504f76c2617ca7c5985752f30c84fe"
2018-12-16 23:04:05 +01:00
2020-02-22 19:16:31 +01:00
gitlab_arm_source_sha256="89d0db6632fe74b052708c6a641bb8d9b192e343e89cd91b87468265eca22ba0"
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
}