From 3fc3e3330edfbc552f014768cb40595619772ad0 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 28 May 2021 02:07:12 +0200 Subject: [PATCH] Better way to get user info / drop reliance on ynh_get_plain_key --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 5d41a13..a46fa97 100644 --- a/scripts/install +++ b/scripts/install @@ -137,9 +137,9 @@ ynh_systemd_action --service_name=nginx --action=reload ynh_script_progression --message="Finalizing installation..." --weight=2 admin_temp_pass=$(ynh_string_random 6) -admin_email=$(yunohost user info "$admin" --output-as plain | ynh_get_plain_key mail) -admin_firstname=$(yunohost user info "$admin" --output-as plain | ynh_get_plain_key firstname) -admin_lastname=$(yunohost user info "$admin" --output-as plain | ynh_get_plain_key lastname) +admin_email=$(ynh_user_get_info "$admin" mail) +admin_firstname=$(ynh_user_get_info "$admin" firstname) +admin_lastname=$(ynh_user_get_info "$admin" lastname) ynh_local_curl "/index.php?r=installer/index/go"