mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
fix install
This commit is contained in:
parent
516d3a7715
commit
3e4b978e72
1 changed files with 4 additions and 4 deletions
|
@ -18,8 +18,8 @@ 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
|
||||
ynh_replace_string --match_string="command \"sysctl -e \(.*\)\"" --replace_string="command \"sysctl -e \1 || true\"" --target_file=$sysctl_file
|
||||
|
||||
sysctl_file="/opt/gitlab/embedded/cookbooks/package/recipes/sysctl.rb"
|
||||
ynh_replace_string --match_string="command \"sysctl -e \(.*\)\"" --replace_string="command \"sysctl -e \1 || true\"" --target_file=$sysctl_file
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue