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

fix web_push.gen.keypair

This commit is contained in:
yalh76 2019-02-12 09:53:08 +01:00
parent 68bc88e86c
commit 06abff348e
2 changed files with 2 additions and 2 deletions

View file

@ -263,7 +263,7 @@ chown -R "$app":"$app" "$final_path"
pushd $final_path/$app pushd $final_path/$app
#Generate key pair #Generate key pair
sudo -u "$app" MIX_ENV=prod mix web_push.gen.keypair >> "config/prod.secret.web_push.exs" sudo -u "$app" mix web_push.gen.keypair >> "config/prod.secret.web_push.exs"
ynh_replace_string "administrator@example.com" "$admin_email" "$final_path/$app/config/prod.secret.web_push.exs" ynh_replace_string "administrator@example.com" "$admin_email" "$final_path/$app/config/prod.secret.web_push.exs"
# App setup and db migration # App setup and db migration

View file

@ -210,7 +210,7 @@ pushd $final_path/$app
if [ ! -f "$final_path/$app/config/prod.secret.web_push.exs" ] if [ ! -f "$final_path/$app/config/prod.secret.web_push.exs" ]
then then
#Generate key pair #Generate key pair
sudo -u "$app" MIX_ENV=prod mix web_push.gen.keypair >> "config/prod.secret.web_push.exs" sudo -u "$app" mix web_push.gen.keypair >> "config/prod.secret.web_push.exs"
ynh_replace_string "administrator@example.com" "$admin_email" "$final_path/$app/config/prod.secret.web_push.exs" ynh_replace_string "administrator@example.com" "$admin_email" "$final_path/$app/config/prod.secret.web_push.exs"
fi fi
sudo -u "$app" MIX_ENV=prod mix deps.get sudo -u "$app" MIX_ENV=prod mix deps.get