mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
|
#!/bin/bash
|
||
|
|
||
|
gitlab_version="13.12.5"
|
||
|
|
||
|
# sha256sum found here: https://packages.gitlab.com/gitlab
|
||
|
gitlab_debian_version="buster"
|
||
|
|
||
|
gitlab_x86_64_buster_source_sha256="3dd65585a09575a207e53d12a81fb506a33954d2f9aa043320e07eec7447f9ef"
|
||
|
|
||
|
gitlab_arm64_buster_source_sha256="3b92897536f3b44fc13c5e8eab31d18424524e667d26ea074a93de346c5ab4c4"
|
||
|
|
||
|
gitlab_arm_buster_source_sha256="3ffc3d6628321ad11289459c824cd1d81a480cde2574fe98c094f37951235b79"
|
||
|
|
||
|
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 <<EOF >> "$config_path/gitlab.rb"
|
||
|
# Last chance to fix Gitlab
|
||
|
package['modify_kernel_parameters'] = false
|
||
|
EOF
|
||
|
ynh_store_file_checksum --file="$config_path/gitlab.rb"
|
||
|
}
|