mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
Fix PATH
This commit is contained in:
parent
24aad57376
commit
3f8b2b2e0a
1 changed files with 3 additions and 3 deletions
|
@ -252,7 +252,7 @@ chown -R "$app":"$app" "$final_path"
|
||||||
|
|
||||||
# Install dependecies
|
# Install dependecies
|
||||||
su -l "$app" -s /bin/bash <<DEPENDENCIES
|
su -l "$app" -s /bin/bash <<DEPENDENCIES
|
||||||
pushd $final_path/$app
|
pushd $final_path/$app/
|
||||||
mix local.hex --force
|
mix local.hex --force
|
||||||
mix local.rebar --force
|
mix local.rebar --force
|
||||||
mix deps.get
|
mix deps.get
|
||||||
|
@ -264,7 +264,7 @@ ynh_psql_execute_as_root \
|
||||||
"ALTER USER $app WITH SUPERUSER;"
|
"ALTER USER $app WITH SUPERUSER;"
|
||||||
|
|
||||||
su -l "$app" -s /bin/bash <<DATABASE
|
su -l "$app" -s /bin/bash <<DATABASE
|
||||||
pushd $final_path/$app
|
pushd $final_path/$app/
|
||||||
MIX_ENV=prod mix ecto.migrate --force
|
MIX_ENV=prod mix ecto.migrate --force
|
||||||
popd
|
popd
|
||||||
DATABASE
|
DATABASE
|
||||||
|
@ -274,7 +274,7 @@ ynh_psql_execute_as_root \
|
||||||
|
|
||||||
# Create admin account
|
# Create admin account
|
||||||
su -l "$app" -s /bin/bash <<ADMIN
|
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
|
# 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 )
|
admin_pass_reset_url=$( MIX_ENV=prod mix pleroma.user new "$admin" "$admin_email" | tail -1 )
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue