From 7966771e6afd21077a6ec8e8f78436b85ef2a28a Mon Sep 17 00:00:00 2001 From: anmol26s Date: Mon, 8 Oct 2018 04:15:58 +0530 Subject: [PATCH] Bollean error --- scripts/install | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index a770f38..d18a9a6 100755 --- a/scripts/install +++ b/scripts/install @@ -121,14 +121,18 @@ email=$(ynh_user_get_info $admin 'mail') # COPY LOCAL.YAML sudo cp ../conf/local.yaml $final_path/config/packages/local.yaml -if [ $registration -eq 1 ]; then +if [ $registration -eq 1 ] +then # MODIFY LOCAL.YAML ynh_replace_string "__REGISTRATION__" "true" "$final_path/config/packages/local.yaml" +fi -elif [ $registration -eq 0 ]; then +if [ $registration -eq 0 ] +then # MODIFY LOCAL.YAML ynh_replace_string "__REGISTRATION__" "false" "$final_path/config/packages/local.yaml" +fi # CHECK WHICH DATABASE TO USE if [ "$database" = "mysql" ]; then