From 071d38bfb1531e6e01dea1a67d9912299537d710 Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Mon, 31 Jan 2022 13:25:33 +0000 Subject: [PATCH] configpanel update password test --- scripts/config | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/config b/scripts/config index d6b5e66..656d5fe 100644 --- a/scripts/config +++ b/scripts/config @@ -77,7 +77,7 @@ set__free_footprint() { } set__password() { - if [ ! $is_password_exist -eq 1 ] + if [ $password -eq "" ] then ynh_app_setting_set --app=$app --key=password --value="$password" fi @@ -115,11 +115,8 @@ ynh_app_config_apply() { then ynh_system_user_add_group --username=$app --groups="sftp.app" - if [ $is_password_exist -eq 1 ] + if [ ! $password -eq "" ] then - ynh_print_warn --message="A password already exist, it will not be replaced." - else - # Add the password to the user chpasswd <<< "${app}:${password}" fi else