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

Fix if conditions

This commit is contained in:
Pierre Bourré 2019-03-17 21:03:20 +01:00
parent b7163a1383
commit 17bf4db2cf
3 changed files with 3 additions and 3 deletions

View file

@ -140,7 +140,7 @@ tempdir="$(mktemp -d)"
ynh_setup_source $tempdir $architecture
if IS_PACKAGE_CHECK; then
if [ ! dpkg -i $tempdir/$gitlab_filename ]; then # This command will fail in lxc env
if ! dpkg -i $tempdir/$gitlab_filename ; then # This command will fail in lxc env
ynh_replace_string "command \"cat \/etc\/sysctl.conf \/etc\/sysctl.d\/\*.conf | sysctl -e -p -\"" "command \"cat \/etc\/sysctl.conf\"" "$final_path/embedded/cookbooks/package/resources/sysctl.rb"
dpkg --configure gitlab-ce
fi

View file

@ -95,7 +95,7 @@ tempdir="$(mktemp -d)"
ynh_setup_source $tempdir $architecture
if IS_PACKAGE_CHECK; then
if [ ! dpkg -i $tempdir/$gitlab_filename ]; then # This command will fail in lxc env
if ! dpkg -i $tempdir/$gitlab_filename ; then # This command will fail in lxc env
ynh_replace_string "command \"cat \/etc\/sysctl.conf \/etc\/sysctl.d\/\*.conf | sysctl -e -p -\"" "command \"cat \/etc\/sysctl.conf\"" "$final_path/embedded/cookbooks/package/resources/sysctl.rb"
dpkg --configure gitlab-ce
fi

View file

@ -179,7 +179,7 @@ tempdir="$(mktemp -d)"
ynh_setup_source $tempdir $architecture
if IS_PACKAGE_CHECK; then
if [ ! dpkg -i $tempdir/$gitlab_filename ]; then # This command will fail in lxc env
if ! dpkg -i $tempdir/$gitlab_filename ; then # This command will fail in lxc env
ynh_replace_string "command \"cat \/etc\/sysctl.conf \/etc\/sysctl.d\/\*.conf | sysctl -e -p -\"" "command \"cat \/etc\/sysctl.conf\"" "$final_path/embedded/cookbooks/package/resources/sysctl.rb"
dpkg --configure gitlab-ce
fi