1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/humhub_ynh.git synced 2024-09-03 19:26:11 +02:00

Better way to get user info / drop reliance on ynh_get_plain_key

This commit is contained in:
Alexandre Aubin 2021-05-28 02:07:12 +02:00 committed by GitHub
parent 9f83273e6f
commit 3fc3e3330e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,9 +137,9 @@ ynh_systemd_action --service_name=nginx --action=reload
ynh_script_progression --message="Finalizing installation..." --weight=2 ynh_script_progression --message="Finalizing installation..." --weight=2
admin_temp_pass=$(ynh_string_random 6) admin_temp_pass=$(ynh_string_random 6)
admin_email=$(yunohost user info "$admin" --output-as plain | ynh_get_plain_key mail) admin_email=$(ynh_user_get_info "$admin" mail)
admin_firstname=$(yunohost user info "$admin" --output-as plain | ynh_get_plain_key firstname) admin_firstname=$(ynh_user_get_info "$admin" firstname)
admin_lastname=$(yunohost user info "$admin" --output-as plain | ynh_get_plain_key lastname) admin_lastname=$(ynh_user_get_info "$admin" lastname)
ynh_local_curl "/index.php?r=installer/index/go" ynh_local_curl "/index.php?r=installer/index/go"