1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pleroma_ynh.git synced 2024-09-03 20:15:59 +02:00
This commit is contained in:
Yalh 2019-01-28 02:22:02 +01:00
parent 24aad57376
commit 3f8b2b2e0a

View file

@ -252,7 +252,7 @@ chown -R "$app":"$app" "$final_path"
# Install dependecies
su -l "$app" -s /bin/bash <<DEPENDENCIES
pushd $final_path/$app
pushd $final_path/$app/
mix local.hex --force
mix local.rebar --force
mix deps.get
@ -264,7 +264,7 @@ ynh_psql_execute_as_root \
"ALTER USER $app WITH SUPERUSER;"
su -l "$app" -s /bin/bash <<DATABASE
pushd $final_path/$app
pushd $final_path/$app/
MIX_ENV=prod mix ecto.migrate --force
popd
DATABASE
@ -274,7 +274,7 @@ ynh_psql_execute_as_root \
# Create admin account
su -l "$app" -s /bin/bash <<ADMIN
pushd $final_path/$app
pushd $final_path/$app/
# Add user and retrieve a password reset link that you can then send to the user
admin_pass_reset_url=$( MIX_ENV=prod mix pleroma.user new "$admin" "$admin_email" | tail -1 )