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:
parent
8eefe7585c
commit
135b2cab33
1 changed files with 3 additions and 1 deletions
|
@ -264,7 +264,9 @@ ynh_psql_execute_as_root \
|
||||||
"ALTER USER $app WITH NOSUPERUSER;"
|
"ALTER USER $app WITH NOSUPERUSER;"
|
||||||
|
|
||||||
# Add user and retrieve a password reset link that you can then send to the user
|
# 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
|
# Make user moderator
|
||||||
( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix pleroma.user set "$admin" --moderator )
|
( cd $final_path/$app && sudo -u "$app" MIX_ENV=prod mix pleroma.user set "$admin" --moderator )
|
||||||
|
|
Loading…
Add table
Reference in a new issue