From 8354bae6778d4fb4738d30742b063c42099bfd94 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Mon, 8 Oct 2018 04:05:51 +0530 Subject: [PATCH] Bollean error --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index aff6c77..a770f38 100755 --- a/scripts/install +++ b/scripts/install @@ -121,12 +121,12 @@ email=$(ynh_user_get_info $admin 'mail') # COPY LOCAL.YAML sudo cp ../conf/local.yaml $final_path/config/packages/local.yaml -if [ "$registration" = "Yes" ]; then +if [ $registration -eq 1 ]; then # MODIFY LOCAL.YAML ynh_replace_string "__REGISTRATION__" "true" "$final_path/config/packages/local.yaml" -elif [ "$registration" = "No" ]; then +elif [ $registration -eq 0 ]; then # MODIFY LOCAL.YAML ynh_replace_string "__REGISTRATION__" "false" "$final_path/config/packages/local.yaml" @@ -214,7 +214,7 @@ fi systemctl reload php7.2-fpm systemctl reload nginx # Set default php to php5 or php7.0 -if [ "$(lsb_release --codename --short)" == "jessie" ]; then +if [ "$(lsb_release --codename --short)" = "jessie" ]; then update-alternatives --set php /usr/bin/php5 else update-alternatives --set php /usr/bin/php7.0