From 8c2943a6b002d487bb8f7fc8ceb8e900a9e82267 Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Mon, 31 Jan 2022 15:50:16 +0000 Subject: [PATCH] oopsies /o\ --- scripts/config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/config b/scripts/config index 9077007..680c4a5 100644 --- a/scripts/config +++ b/scripts/config @@ -68,7 +68,7 @@ set__free_footprint() { } set__password() { - if [ $password -eq "" ] + if [ "$password" == "" ] then ynh_app_setting_set --app=$app --key=password --value="$password" fi @@ -104,12 +104,12 @@ ynh_app_config_apply() { if [ "${changed[phpversion]}" == "true" ] || "${changed[fpm_usage]}" == "true" ] || [ "${changed[fpm_footprint]}" == "true" ] || [ "${changed[free_footprint]}" == "true" ]; then ynh_remove_fpm_config - if [[ ! "$phpversion" == "none" ]]; then + if [ ! "$phpversion" == "none" ]; then ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint fi fi - if [[ ! $phpversion == "none" ]] + if [ ! "$phpversion" == "none" ] then ynh_add_fpm_config --phpversion=$phpversion --usage=$fpm_usage --footprint=$fpm_footprint fi @@ -118,7 +118,7 @@ ynh_app_config_apply() { then ynh_system_user_add_group --username=$app --groups="sftp.app" - if [[ ! $password == "" ]] + if [ ! "$password" == "" ] then chpasswd <<< "${app}:${password}" fi