From 61a5ccf177e4958a66a099927b1df0b20c654308 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 5 Jan 2024 17:16:20 +0100 Subject: [PATCH 1/5] Upgrade to v5.75.3 Changelog: https://github.com/TryGhost/Ghost/releases/tag/v5.75.3 --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index db8b22d..5e4ac52 100644 --- a/manifest.toml +++ b/manifest.toml @@ -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] From b20cb9f67f65f377827ea3a74742fc9454e20783 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 5 Jan 2024 16:16:21 +0000 Subject: [PATCH 2/5] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a8c211..bfba05a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README_fr.md b/README_fr.md index cdbeda4..e142d73 100644 --- a/README_fr.md +++ b/README_fr.md @@ -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 From ce63f5591ea691c22fa22544cf8367b4a9aadbb5 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 11 Jan 2024 21:26:22 +0000 Subject: [PATCH 3/5] One letter is missing and you are stripped of everything --- scripts/change_url | 2 +- scripts/install | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 78618c4..a249d8c 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -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 diff --git a/scripts/install b/scripts/install index feb96e3..573f726 100644 --- a/scripts/install +++ b/scripts/install @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index d64d26b..849dc80 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 From c1cdca5b2c793f5197a02408a2ea1bf4a5e6d625 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 12 Jan 2024 21:21:28 +0100 Subject: [PATCH 4/5] Fix https url config --- scripts/upgrade | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 849dc80..11db23a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,6 +111,8 @@ else pushd $install_dir/ghost # Make sure the app does not expect to manage its own process ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config --process local + # Make sure the app config runs on https + ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config --url https://$domain$path # 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 From f9df99cb5743ea96be0da17e98aed7b9499f398f Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 12 Jan 2024 21:33:48 +0100 Subject: [PATCH 5/5] Move https config and force upgrade --- scripts/upgrade | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 11db23a..df7632b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -111,11 +111,9 @@ else pushd $install_dir/ghost # Make sure the app does not expect to manage its own process ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config --process local - # Make sure the app config runs on https - ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config --url https://$domain$path # 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 @@ -124,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