1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00

Merge pull request #297 from YunoHost-Apps/testing

Upgrade to v5.75.3 and fix Stripe integration
This commit is contained in:
tituspijean 2024-01-14 20:17:06 +00:00 committed by GitHub
commit f29b074725
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 9 deletions

View file

@ -21,7 +21,7 @@ Ghost is a powerful app for new-media creators to publish, share, and grow a bus
It comes with modern tools to build a website, publish content, send newsletters & offer paid subscriptions to members.
**Shipped version:** 5.72.1~ynh1
**Shipped version:** 5.75.3~ynh1
## Screenshots

View file

@ -21,7 +21,7 @@ Ghost is a powerful app for new-media creators to publish, share, and grow a bus
It comes with modern tools to build a website, publish content, send newsletters & offer paid subscriptions to members.
**Version incluse :** 5.72.1~ynh1
**Version incluse :** 5.75.3~ynh1
## Captures décran

View file

@ -5,7 +5,7 @@ name = "Ghost"
description.en = "Publishing, memberships, subscriptions and newsletters platform"
description.fr = "Plateforme d'édition, d'adhésions, d'abonnements et de newsletters"
version = "5.72.1~ynh1"
version = "5.75.3~ynh1"
maintainers = ["Julien Malik"]
[upstream]
@ -47,8 +47,8 @@ ram.runtime = "1G"
[resources.sources.main]
# Unused source, only to trigger the autoupdater
prefetch = false
url = "https://github.com/TryGhost/Ghost/archive/refs/tags/v5.72.1.tar.gz"
sha256 = "5de4952512a1ffefa0b7b3b3112c9054ffc69cbfcc89287a376c1eba19bcf783"
url = "https://github.com/TryGhost/Ghost/archive/refs/tags/v5.75.3.tar.gz"
sha256 = "8bcf424b3724d27fcd17aa24f0b4c70aae3b3d53a64b8ce1911b64eb184052fe"
autoupdate.strategy = "latest_github_release"
[resources.system_user]

View file

@ -37,7 +37,7 @@ ynh_change_url_nginx_config
#=================================================
ynh_script_progression --message="Modifying a config file..."
echo "$(jq -r --arg YNH_APP_NEW_DOMAIN $YNH_APP_NEW_DOMAIN --arg YNH_APP_NEW_PATH $YNH_APP_NEW_PATH ".url = \"http://$YNH_APP_NEW_DOMAIN$YNH_APP_NEW_PATH\"" $install_dir/ghost/config.production.json)" > $install_dir/ghost/config.production.json
echo "$(jq -r --arg YNH_APP_NEW_DOMAIN $YNH_APP_NEW_DOMAIN --arg YNH_APP_NEW_PATH $YNH_APP_NEW_PATH ".url = \"https://$YNH_APP_NEW_DOMAIN$YNH_APP_NEW_PATH\"" $install_dir/ghost/config.production.json)" > $install_dir/ghost/config.production.json
#=================================================
# GENERIC FINALISATION

View file

@ -36,7 +36,7 @@ pushd $install_dir
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost install $(ynh_app_upstream_version) \
--no-prompt --no-setup-systemd --no-start \
--dir ghost --no-setup-linux-user \
--no-setup-nginx --no-setup-ssl --url http://$domain$path --port $port \
--no-setup-nginx --no-setup-ssl --url https://$domain$path --port $port \
--db mysql --dbhost 127.0.0.1 --dbuser $db_user --dbpass $db_pwd --dbname $db_name \
--mail SMTP --mailhost 127.0.0.1 --mailport 465

View file

@ -90,7 +90,7 @@ then
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost install $(ynh_app_upstream_version) \
--no-prompt --no-setup-systemd --no-start \
--dir ghost --no-setup-linux-user \
--no-setup-nginx --no-setup-ssl --url http://$domain$path --port $port \
--no-setup-nginx --no-setup-ssl --url https://$domain$path --port $port \
--db mysql --dbhost 127.0.0.1 --dbuser $db_user --dbpass $db_pwd --dbname $db_name \
--mail SMTP --mailhost 127.0.0.1 --mailport 465
popd
@ -113,7 +113,7 @@ else
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config --process local
# Upgrade Ghost itself
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost update $(ynh_app_upstream_version) \
--no-prompt --no-auto-rollback --no-restart
--no-prompt --no-auto-rollback --no-restart --force
popd
fi
@ -122,6 +122,7 @@ fi
pushd $install_dir/ghost
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config \
--port $port --process local \
--url https://$domain$path \
--mail SMTP --mailuser noreply@$domain --mailpass $mail_pwd --mailhost 127.0.0.1 --mailport 25
popd