mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
Fix web_push
This commit is contained in:
parent
94629768af
commit
dcb6b7779c
3 changed files with 9 additions and 3 deletions
|
@ -70,4 +70,4 @@ config :pleroma, Pleroma.Repo,
|
|||
# object_url: "https://cdn-endpoint.provider.com/<container>"
|
||||
#
|
||||
|
||||
|
||||
import_config "prod.secret.web_push.exs"
|
||||
|
|
|
@ -277,8 +277,8 @@ pushd $final_path/$app
|
|||
sudo -u "$app" MIX_ENV=prod mix pleroma.user new "$admin" "$admin_email" --password "$password" --moderator --admin -y
|
||||
|
||||
#Generate key pair
|
||||
sudo -u "$app" MIX_ENV=prod mix web_push.gen.keypair >> "config/prod.secret.exs"
|
||||
ynh_replace_string "administrator@example.com" "$admin_email" "$final_path/$app/config/prod.secret.exs"
|
||||
sudo -u "$app" MIX_ENV=prod 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"
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -215,6 +215,12 @@ chown -R "$app":"$app" "$final_path"
|
|||
pushd $final_path/$app
|
||||
sudo -u "$app" MIX_ENV=prod mix deps.get
|
||||
sudo -u "$app" MIX_ENV=prod mix ecto.migrate --force
|
||||
if [ ! -f "$final_path/$app/config/prod.secret.web_push.exs" ]
|
||||
then
|
||||
#Generate key pair
|
||||
sudo -u "$app" MIX_ENV=prod 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"
|
||||
fi
|
||||
popd
|
||||
|
||||
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
|
||||
|
|
Loading…
Add table
Reference in a new issue