From 3bd5894a93f8d5c691347378881e8d117eda67e0 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 18 Aug 2023 13:21:40 +0200 Subject: [PATCH 1/5] Upgrade to v5.59.1 --- manifest.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manifest.toml b/manifest.toml index d508d46..3dc285f 100644 --- a/manifest.toml +++ b/manifest.toml @@ -5,8 +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.44.0~ynh1" - +version = "5.59.1~ynh1" maintainers = ["Julien Malik"] [upstream] From 2b0d658148e423a0ef939fe67098da497f6dfd8b Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 18 Aug 2023 13:26:12 +0200 Subject: [PATCH 2/5] Enhance service monitoring --- scripts/change_url | 4 ++-- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 291aea2..78618c4 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -21,7 +21,7 @@ fi #================================================= ynh_script_progression --message="Stopping a systemd service..." --time --weight=1 -ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action=stop --log_path="systemd" --line_match="Ghost has shut down" --timeout=60 #================================================= # MODIFY URL IN NGINX CONF @@ -46,7 +46,7 @@ echo "$(jq -r --arg YNH_APP_NEW_DOMAIN $YNH_APP_NEW_DOMAIN --arg YNH_APP_NEW_PAT #================================================= ynh_script_progression --message="Starting a systemd service..." --time --weight=1 -ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" +ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Ghost booted" --timeout=60 #================================================= # END OF SCRIPT diff --git a/scripts/install b/scripts/install index cfdf894..70ce8c2 100644 --- a/scripts/install +++ b/scripts/install @@ -87,7 +87,7 @@ yunohost service add $app --description="$app daemon for Ghost" --log="$install_ ynh_script_progression --message="Starting a systemd service..." # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --line_match="Ghost booted" --timeout=60 +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Ghost booted" --timeout=60 #================================================= # END OF SCRIPT diff --git a/scripts/restore b/scripts/restore index c958b5c..fb722c7 100755 --- a/scripts/restore +++ b/scripts/restore @@ -72,7 +72,7 @@ yunohost service add $app --description="$app daemon for Ghost" --log="$install_ #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action=start --line_match="Ghost booted" --timeout=60 +ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Ghost booted" --timeout=60 #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index 35f9464..27776cc 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,7 +29,7 @@ fi #================================================= ynh_script_progression --message="Stopping a systemd service..." -ynh_systemd_action --service_name=$app --action=stop +ynh_systemd_action --service_name=$app --action=stop --log_path="systemd" --line_match="Ghost has shut down" --timeout=60 #================================================= # UPGRADE DEPENDENCIES @@ -157,7 +157,7 @@ yunohost service add $app --description="$app daemon for Ghost" --log="$install_ #================================================= ynh_script_progression --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action=start --line_match="Ghost booted" --timeout=60 +ynh_systemd_action --service_name=$app --action=start --log_path="systemd" --line_match="Ghost booted" --timeout=60 #================================================= # END OF SCRIPT From 8ed1dffe60978a9b6df2a541d28ab8bf072fbb58 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 18 Aug 2023 11:26:28 +0000 Subject: [PATCH 3/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 fb9d952..2dbd62e 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.44.0~ynh1 +**Shipped version:** 5.59.1~ynh1 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 0dbcbb4..932ac08 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.44.0~ynh1 +**Version incluse :** 5.59.1~ynh1 ## Captures d’écran From 23ccf78b4e0629ec38b95ab240fd7af40d4ee1a9 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 18 Aug 2023 13:38:29 +0200 Subject: [PATCH 4/5] Add documentation --- doc/ADMIN.md | 1 + doc/PRE_UPGRADE.d/5.44.0~ynh1.md | 1 + 2 files changed, 2 insertions(+) create mode 100644 doc/ADMIN.md diff --git a/doc/ADMIN.md b/doc/ADMIN.md new file mode 100644 index 0000000..1a8f714 --- /dev/null +++ b/doc/ADMIN.md @@ -0,0 +1 @@ +If you want to use Ghost's CLI, run `sudo yunohost app shell __APP__` in a terminal to load the proper environment. diff --git a/doc/PRE_UPGRADE.d/5.44.0~ynh1.md b/doc/PRE_UPGRADE.d/5.44.0~ynh1.md index bfe7ddf..e3ff191 100644 --- a/doc/PRE_UPGRADE.d/5.44.0~ynh1.md +++ b/doc/PRE_UPGRADE.d/5.44.0~ynh1.md @@ -1,6 +1,7 @@ Starting v5.44.0~ynh1, the package relies on Ghost CLI to manage the installation of the app. The migration has been tested, though please report any issue you might encounter. +You might need to manually move your `content` directory to its proper location in `__INSTALL_DIR__/ghost/content`. Remember that a backup is performed before any app upgrade by your YunoHost server. Enjoy! From 819db8486ac0bed9888fbc76a58ec647b921c169 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Fri, 18 Aug 2023 13:38:45 +0200 Subject: [PATCH 5/5] Enable email sending --- manifest.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/manifest.toml b/manifest.toml index 3dc285f..61335d0 100644 --- a/manifest.toml +++ b/manifest.toml @@ -41,6 +41,7 @@ ram.runtime = "1G" [resources] [resources.system_user] + allow_email = true [resources.install_dir]