mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
Fix package_check_action
This commit is contained in:
parent
37163160ff
commit
556fefd525
1 changed files with 5 additions and 1 deletions
|
@ -8,5 +8,9 @@ gitlab_filename="gitlab-ce-${gitlab_version}.deb"
|
||||||
|
|
||||||
# Action to do in case of failure of the package_check
|
# Action to do in case of failure of the package_check
|
||||||
package_check_action() {
|
package_check_action() {
|
||||||
ynh_replace_string --match_string="command \"sysctl -e --system\"" --replace_string="command \"sysctl -e --system || true\"" --target_file="$final_path/embedded/cookbooks/package/resources/sysctl.rb"
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue