From 686309fc090923890ea1a8025a7be5421980c783 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Mon, 8 Oct 2018 03:12:09 +0530 Subject: [PATCH] Bollean error --- scripts/backup | 2 +- scripts/install | 6 +++--- scripts/remove | 2 +- scripts/restore | 2 +- scripts/upgrade | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/backup b/scripts/backup index 54fa893..da00816 100755 --- a/scripts/backup +++ b/scripts/backup @@ -51,7 +51,7 @@ ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup "/etc/php/7.2/fpm/pool.d/$app.conf" -if [ "$database" == "mysql" ]; then +if [ "$database" = "mysql" ]; then db_name=$(ynh_app_setting_get $app db_name) #================================================= # BACKUP THE MYSQL DATABASE diff --git a/scripts/install b/scripts/install index 263c14d..aff6c77 100755 --- a/scripts/install +++ b/scripts/install @@ -121,17 +121,17 @@ email=$(ynh_user_get_info $admin 'mail') # COPY LOCAL.YAML sudo cp ../conf/local.yaml $final_path/config/packages/local.yaml -if [ "$registration" = "1" ]; then +if [ "$registration" = "Yes" ]; then # MODIFY LOCAL.YAML ynh_replace_string "__REGISTRATION__" "true" "$final_path/config/packages/local.yaml" -elif [ "$registration" = "0" ]; then +elif [ "$registration" = "No" ]; then # MODIFY LOCAL.YAML ynh_replace_string "__REGISTRATION__" "false" "$final_path/config/packages/local.yaml" # CHECK WHICH DATABASE TO USE -if [ "$database" == "mysql" ]; then +if [ "$database" = "mysql" ]; then # setup application config sudo cp ../conf/.env $final_path/.env #================================================= diff --git a/scripts/remove b/scripts/remove index 85c7259..42f5d76 100755 --- a/scripts/remove +++ b/scripts/remove @@ -39,7 +39,7 @@ ynh_secure_remove "$final_path" # Remove the dedicated nginx config ynh_remove_nginx_config -if [ "$database" == "mysql" ]; then +if [ "$database" = "mysql" ]; then db_name=$(ynh_app_setting_get $app db_name) db_user=$db_name #================================================= diff --git a/scripts/restore b/scripts/restore index 1e9f5c5..712e76b 100755 --- a/scripts/restore +++ b/scripts/restore @@ -62,7 +62,7 @@ ynh_restore_file "/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file "$final_path" -if [ "$database" == "mysql" ]; then +if [ "$database" = "mysql" ]; then #================================================= # RESTORE THE MYSQL DATABASE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 90c859e..3fd173f 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -99,7 +99,7 @@ fi ynh_setup_source "$final_path" # If the version is 0.3, symfony update is required -if [ "$version" == "0.3" ] +if [ "$version" = "0.3" ] then ynh_secure_remove "$final_path" ynh_setup_source "$final_path" @@ -119,7 +119,7 @@ fi sudo rm -Rf "$tmpdir" database=$(ynh_app_setting_get $app database) -if [ "$database" == "mysql" ]; then +if [ "$database" = "mysql" ]; then # setup application config sudo cp ../conf/.env $final_path/.env