From 79048640b23e7b249d6b19c65da793e2ca6d9c87 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 12 Nov 2021 09:33:47 +0100 Subject: [PATCH] Use quotes while storing string settings --- scripts/install | 14 +++++++------- scripts/upgrade | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/install b/scripts/install index 53cea4a..3f1ecd5 100644 --- a/scripts/install +++ b/scripts/install @@ -53,13 +53,13 @@ ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url #================================================= ynh_script_progression --message="Storing installation settings..." -ynh_app_setting_set --app=$app --key=domain --value=$domain -ynh_app_setting_set --app=$app --key=path --value=$path_url -ynh_app_setting_set --app=$app --key=admin --value=$admin -ynh_app_setting_set --app=$app --key=language --value=$language -ynh_app_setting_set --app=$app --key=project_version --value=$project_version -ynh_app_setting_set --app=$app --key=core_version --value=$core_version -ynh_app_setting_set --app=$app --key=ldap_version --value=$ldap_version +ynh_app_setting_set --app=$app --key=domain --value="$domain" +ynh_app_setting_set --app=$app --key=path --value="$path_url" +ynh_app_setting_set --app=$app --key=admin --value="$admin" +ynh_app_setting_set --app=$app --key=language --value="$language" +ynh_app_setting_set --app=$app --key=project_version --value="$project_version" +ynh_app_setting_set --app=$app --key=core_version --value="$core_version" +ynh_app_setting_set --app=$app --key=ldap_version --value="$ldap_version" #================================================= # STANDARD MODIFICATIONS diff --git a/scripts/upgrade b/scripts/upgrade index e8bea36..8e0072c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -240,9 +240,9 @@ pushd $final_path popd # Save version settings -ynh_app_setting_set $app project_version $project_version -ynh_app_setting_set $app core_version $core_version -ynh_app_setting_set $app ldap_version $ldap_version +ynh_app_setting_set $app project_version "$project_version" +ynh_app_setting_set $app core_version "$core_version" +ynh_app_setting_set $app ldap_version "$ldap_version" #================================================= # GENERIC FINALIZATION