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:
commit
f29b074725
6 changed files with 10 additions and 9 deletions
|
@ -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.
|
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
|
## Screenshots
|
||||||
|
|
||||||
|
|
|
@ -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.
|
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
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ name = "Ghost"
|
||||||
description.en = "Publishing, memberships, subscriptions and newsletters platform"
|
description.en = "Publishing, memberships, subscriptions and newsletters platform"
|
||||||
description.fr = "Plateforme d'édition, d'adhésions, d'abonnements et de newsletters"
|
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"]
|
maintainers = ["Julien Malik"]
|
||||||
|
|
||||||
[upstream]
|
[upstream]
|
||||||
|
@ -47,8 +47,8 @@ ram.runtime = "1G"
|
||||||
[resources.sources.main]
|
[resources.sources.main]
|
||||||
# Unused source, only to trigger the autoupdater
|
# Unused source, only to trigger the autoupdater
|
||||||
prefetch = false
|
prefetch = false
|
||||||
url = "https://github.com/TryGhost/Ghost/archive/refs/tags/v5.72.1.tar.gz"
|
url = "https://github.com/TryGhost/Ghost/archive/refs/tags/v5.75.3.tar.gz"
|
||||||
sha256 = "5de4952512a1ffefa0b7b3b3112c9054ffc69cbfcc89287a376c1eba19bcf783"
|
sha256 = "8bcf424b3724d27fcd17aa24f0b4c70aae3b3d53a64b8ce1911b64eb184052fe"
|
||||||
autoupdate.strategy = "latest_github_release"
|
autoupdate.strategy = "latest_github_release"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
|
@ -37,7 +37,7 @@ ynh_change_url_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Modifying a config file..."
|
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
|
# GENERIC FINALISATION
|
||||||
|
|
|
@ -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) \
|
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 \
|
--no-prompt --no-setup-systemd --no-start \
|
||||||
--dir ghost --no-setup-linux-user \
|
--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 \
|
--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
|
--mail SMTP --mailhost 127.0.0.1 --mailport 465
|
||||||
|
|
||||||
|
|
|
@ -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) \
|
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 \
|
--no-prompt --no-setup-systemd --no-start \
|
||||||
--dir ghost --no-setup-linux-user \
|
--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 \
|
--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
|
--mail SMTP --mailhost 127.0.0.1 --mailport 465
|
||||||
popd
|
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
|
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config --process local
|
||||||
# Upgrade Ghost itself
|
# Upgrade Ghost itself
|
||||||
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost update $(ynh_app_upstream_version) \
|
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
|
popd
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
@ -122,6 +122,7 @@ fi
|
||||||
pushd $install_dir/ghost
|
pushd $install_dir/ghost
|
||||||
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config \
|
ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config \
|
||||||
--port $port --process local \
|
--port $port --process local \
|
||||||
|
--url https://$domain$path \
|
||||||
--mail SMTP --mailuser noreply@$domain --mailpass $mail_pwd --mailhost 127.0.0.1 --mailport 25
|
--mail SMTP --mailuser noreply@$domain --mailpass $mail_pwd --mailhost 127.0.0.1 --mailport 25
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue