1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pleroma_ynh.git synced 2024-09-03 20:15:59 +02:00

change way of the admin url is handle

This commit is contained in:
Yalh 2019-01-28 02:36:54 +01:00
parent 8eefe7585c
commit 135b2cab33

View file

@ -264,7 +264,9 @@ ynh_psql_execute_as_root \
"ALTER USER $app WITH NOSUPERUSER;"
# Add user and retrieve a password reset link that you can then send to the user
admin_pass_reset_url=$( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix pleroma.user new "$admin" "$admin_email" | tail -1 )
#admin_pass_reset_url=$( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix pleroma.user new "$admin" "$admin_email" | tail -1 )
response=$( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix pleroma.user new "$admin" "$admin_email" )
admin_pass_reset_url=$( tail -1 $response)
# Make user moderator
( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix pleroma.user set "$admin" --moderator )