From 4fb5534c2215266b3f77c625b6579411c1bd0b8c Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 18 Jul 2024 03:34:39 +0200 Subject: [PATCH 1/9] Upgrade sources - `main` v5.87.3: https://github.com/TryGhost/Ghost/releases/tag/v5.87.3 --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index 8d7512e..cce393e 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.87.2~ynh1" +version = "5.87.3~ynh1" maintainers = [] [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.87.2.tar.gz" - sha256 = "57ea28f90a868a498301208993a693f19f58d570d8fc7aabd022148a08826eb0" + url = "https://github.com/TryGhost/Ghost/archive/refs/tags/v5.87.3.tar.gz" + sha256 = "bfa58cfdd9779b84e9705d6d7f3ebd183f551eebc8142252a41206dff7704901" autoupdate.strategy = "latest_github_release" [resources.system_user] From 0e7ec5b712b7864f62bd4ca8ca956b9fa0e585cd Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Thu, 18 Jul 2024 01:34:41 +0000 Subject: [PATCH 2/9] Auto-update READMEs --- README.md | 2 +- README_es.md | 2 +- README_eu.md | 2 +- README_fr.md | 2 +- README_gl.md | 2 +- README_zh_Hans.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9ded50c..9a60741 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.87.2~ynh1 +**Shipped version:** 5.87.3~ynh1 ## Screenshots diff --git a/README_es.md b/README_es.md index 91f1a0d..9baab7c 100644 --- a/README_es.md +++ b/README_es.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. -**Versión actual:** 5.87.2~ynh1 +**Versión actual:** 5.87.3~ynh1 ## Capturas diff --git a/README_eu.md b/README_eu.md index 28446bc..da145a8 100644 --- a/README_eu.md +++ b/README_eu.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. -**Paketatutako bertsioa:** 5.87.2~ynh1 +**Paketatutako bertsioa:** 5.87.3~ynh1 ## Pantaila-argazkiak diff --git a/README_fr.md b/README_fr.md index ea92103..099870f 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.87.2~ynh1 +**Version incluse :** 5.87.3~ynh1 ## Captures d’écran diff --git a/README_gl.md b/README_gl.md index cd7c169..5b72618 100644 --- a/README_gl.md +++ b/README_gl.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. -**Versión proporcionada:** 5.87.2~ynh1 +**Versión proporcionada:** 5.87.3~ynh1 ## Capturas de pantalla diff --git a/README_zh_Hans.md b/README_zh_Hans.md index c6c936d..d2b4551 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.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. -**分发版本:** 5.87.2~ynh1 +**分发版本:** 5.87.3~ynh1 ## 截图 From 8bf1451d79dc3da0a5a95d2e821f9a3ee131cf05 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 21 Jul 2024 03:34:29 +0200 Subject: [PATCH 3/9] Upgrade sources - `main` v5.88.1: https://github.com/TryGhost/Ghost/releases/tag/v5.88.1 --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index cce393e..e0908c0 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.87.3~ynh1" +version = "5.88.1~ynh1" maintainers = [] [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.87.3.tar.gz" - sha256 = "bfa58cfdd9779b84e9705d6d7f3ebd183f551eebc8142252a41206dff7704901" + url = "https://github.com/TryGhost/Ghost/archive/refs/tags/v5.88.1.tar.gz" + sha256 = "3d14cf2caf24e3d09a4d6be784c5801748b6cac9fd72362a6eb7a9892d516608" autoupdate.strategy = "latest_github_release" [resources.system_user] From a9a8a76b7c35ca832a69b4d4117db21a3b97fdb8 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 21 Jul 2024 01:34:31 +0000 Subject: [PATCH 4/9] Auto-update READMEs --- ALL_README.md | 1 + README.md | 2 +- README_es.md | 2 +- README_eu.md | 2 +- README_fr.md | 2 +- README_gl.md | 2 +- README_id.md | 54 +++++++++++++++++++++++++++++++++++++++++++++++ README_zh_Hans.md | 2 +- 8 files changed, 61 insertions(+), 6 deletions(-) create mode 100644 README_id.md diff --git a/ALL_README.md b/ALL_README.md index 152f2e7..4ed64dd 100644 --- a/ALL_README.md +++ b/ALL_README.md @@ -5,4 +5,5 @@ - [Irakurri README euskaraz](README_eu.md) - [Lire le README en français](README_fr.md) - [Le o README en galego](README_gl.md) +- [Baca README dalam bahasa bahasa Indonesia](README_id.md) - [阅读中文(简体)的 README](README_zh_Hans.md) diff --git a/README.md b/README.md index 9a60741..c5ee58e 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.87.3~ynh1 +**Shipped version:** 5.88.1~ynh1 ## Screenshots diff --git a/README_es.md b/README_es.md index 9baab7c..a9f528b 100644 --- a/README_es.md +++ b/README_es.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. -**Versión actual:** 5.87.3~ynh1 +**Versión actual:** 5.88.1~ynh1 ## Capturas diff --git a/README_eu.md b/README_eu.md index da145a8..0c54c40 100644 --- a/README_eu.md +++ b/README_eu.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. -**Paketatutako bertsioa:** 5.87.3~ynh1 +**Paketatutako bertsioa:** 5.88.1~ynh1 ## Pantaila-argazkiak diff --git a/README_fr.md b/README_fr.md index 099870f..9bac6d2 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.87.3~ynh1 +**Version incluse :** 5.88.1~ynh1 ## Captures d’écran diff --git a/README_gl.md b/README_gl.md index 5b72618..bd8a781 100644 --- a/README_gl.md +++ b/README_gl.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. -**Versión proporcionada:** 5.87.3~ynh1 +**Versión proporcionada:** 5.88.1~ynh1 ## Capturas de pantalla diff --git a/README_id.md b/README_id.md new file mode 100644 index 0000000..aa04774 --- /dev/null +++ b/README_id.md @@ -0,0 +1,54 @@ + + +# Ghost untuk YunoHost + +[![Tingkat integrasi](https://dash.yunohost.org/integration/ghost.svg)](https://ci-apps.yunohost.org/ci/apps/ghost/) ![Status kerja](https://ci-apps.yunohost.org/ci/badges/ghost.status.svg) ![Status pemeliharaan](https://ci-apps.yunohost.org/ci/badges/ghost.maintain.svg) + +[![Pasang Ghost dengan YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=ghost) + +*[Baca README ini dengan bahasa yang lain.](./ALL_README.md)* + +> *Paket ini memperbolehkan Anda untuk memasang Ghost secara cepat dan mudah pada server YunoHost.* +> *Bila Anda tidak mempunyai YunoHost, silakan berkonsultasi dengan [panduan](https://yunohost.org/install) untuk mempelajari bagaimana untuk memasangnya.* + +## Ringkasan + +Ghost is a powerful app for new-media creators to publish, share, and grow a business around their content. + +It comes with modern tools to build a website, publish content, send newsletters & offer paid subscriptions to members. + + +**Versi terkirim:** 5.88.1~ynh1 + +## Tangkapan Layar + +![Tangkapan Layar pada Ghost](./doc/screenshots/screenshot.png) + +## :red_circle: Antifitur + +- **Arbitrary limitations**: Ghost developers have chosen to only support MySQL. YunoHost relying on MariaDB, incompatibilities may arise. For more information: https://github.com/TryGhost/Ghost/issues/15729#issuecomment-1299297720 + +## Dokumentasi dan sumber daya + +- Website aplikasi resmi: +- Dokumentasi admin resmi: +- Repositori kode aplikasi hulu: +- Gudang YunoHost: +- Laporkan bug: + +## Info developer + +Silakan kirim pull request ke [`testing` branch](https://github.com/YunoHost-Apps/ghost_ynh/tree/testing). + +Untuk mencoba branch `testing`, silakan dilanjutkan seperti: + +```bash +sudo yunohost app install https://github.com/YunoHost-Apps/ghost_ynh/tree/testing --debug +atau +sudo yunohost app upgrade ghost -u https://github.com/YunoHost-Apps/ghost_ynh/tree/testing --debug +``` + +**Info lebih lanjut mengenai pemaketan aplikasi:** diff --git a/README_zh_Hans.md b/README_zh_Hans.md index d2b4551..080782a 100644 --- a/README_zh_Hans.md +++ b/README_zh_Hans.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. -**分发版本:** 5.87.3~ynh1 +**分发版本:** 5.88.1~ynh1 ## 截图 From 450a1199ab3e30e6ff470e2a4682a54528941c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:42:50 +0200 Subject: [PATCH 5/9] fix --- manifest.toml | 4 ++-- scripts/install | 18 ++++++------------ scripts/remove | 1 - scripts/upgrade | 16 ++++++++-------- 4 files changed, 16 insertions(+), 23 deletions(-) diff --git a/manifest.toml b/manifest.toml index e0908c0..1c9a479 100644 --- a/manifest.toml +++ b/manifest.toml @@ -20,7 +20,7 @@ fund = "https://opencollective.com/ghost" arbitrary-limitations.en = "Ghost developers have chosen to only support MySQL. YunoHost relying on MariaDB, incompatibilities may arise. For more information: https://github.com/TryGhost/Ghost/issues/15729#issuecomment-1299297720" [integration] -yunohost = ">= 11.2" +yunohost = ">= 11.2.20" architectures = "all" multi_instance = true ldap = false @@ -64,7 +64,7 @@ ram.runtime = "1G" [resources.ports] [resources.apt] - packages = "mailutils mariadb-server" + packages = "mailutils, mariadb-server" [resources.database] type = "mysql" diff --git a/scripts/install b/scripts/install index 573f726..f35567f 100644 --- a/scripts/install +++ b/scripts/install @@ -12,26 +12,20 @@ source /usr/share/yunohost/helpers #================================================= # INSTALL DEPENDENCIES #================================================= -ynh_script_progression --message="Installing NodeJS dependencies..." +ynh_script_progression --message="Installing NodeJS..." --weight=3 -# Install Nodejs -ynh_install_nodejs --nodejs_version=$NODEJS_VERSION - -# Upgrade NPM -ynh_npm install --global npm@latest - -# Install Yarn -ynh_npm install --global yarn +ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version # Install Ghost-CLI - mkdir -p $install_dir/ghost chmod 750 "$install_dir" chmod -R o-rwx "$install_dir" chown -R $app:$app "$install_dir" pushd $install_dir - ynh_script_progression --message="Installing and configuring Ghost..." + ynh_script_progression --message="Installing and configuring $app..." + ynh_use_nodejs + ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install npm@latest ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install ghost-cli@latest 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 \ @@ -65,7 +59,7 @@ fi #================================================= ynh_script_progression --message="Adding system configurations related to $app..." --weight=1 -# Create a dedicated nginx config +# Create a dedicated NGINX config ynh_add_nginx_config # Create a dedicated systemd config diff --git a/scripts/remove b/scripts/remove index 77326c6..2438650 100644 --- a/scripts/remove +++ b/scripts/remove @@ -29,7 +29,6 @@ ynh_remove_nginx_config ynh_remove_logrotate - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index df7632b..87472d8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -39,17 +39,13 @@ ynh_script_progression --message="Stopping a systemd service..." ynh_systemd_action --service_name=$app --action=stop --log_path="systemd" --line_match="Ghost has shut down" --timeout=60 + #================================================= # UPGRADE DEPENDENCIES #================================================= -# Install Nodejs -ynh_install_nodejs --nodejs_version=$NODEJS_VERSION +ynh_script_progression --message="Updating NodeJS..." --weight=1 -# Upgrade NPM -ynh_npm install --global npm@latest - -# Install Yarn -ynh_npm install --global yarn +ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version" #================================================= # UPGRADE @@ -60,7 +56,7 @@ ynh_npm install --global yarn if ynh_compare_current_package_version --comparison le --version 5.26.4~ynh1 then - ynh_script_progression --message="Upgrading from older packaging of Ghost..." + ynh_script_progression --message="Upgrading from older packaging of $app..." # Create a temporary directory tmpdir="$(mktemp -d)" @@ -86,6 +82,8 @@ then chown -R $app:www-data "$install_dir" pushd $install_dir + ynh_use_nodejs + ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install npm@latest ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install ghost-cli@latest 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 \ @@ -105,6 +103,8 @@ else # Upgrade Ghost CLI pushd $install_dir + ynh_use_nodejs + ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install npm@latest ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install ghost-cli@latest popd From 9ef5bbbb2a79fda011c8b5cdba55e7073b2f3687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:46:03 +0200 Subject: [PATCH 6/9] Update _common.sh --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 702e69f..9195d57 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -NODEJS_VERSION=18 +nodejs_version=18 #================================================= # PERSONAL HELPERS From 8106b12fdbe4eeab6590d37cfdae06b53a02e333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:47:10 +0200 Subject: [PATCH 7/9] Update restore --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index d805807..f8fca35 100755 --- a/scripts/restore +++ b/scripts/restore @@ -40,7 +40,7 @@ ynh_script_progression --message="Restoring system configurations related to $ap ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" # Install Nodejs -ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$NODEJS_VERSION +ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable $app.service --quiet From 3cdae2beabf9fc4b26ed4fedb0753952c4a601f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 22 Jul 2024 19:52:14 +0200 Subject: [PATCH 8/9] Update manifest.toml --- manifest.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manifest.toml b/manifest.toml index 1c9a479..aa4951f 100644 --- a/manifest.toml +++ b/manifest.toml @@ -66,5 +66,10 @@ ram.runtime = "1G" [resources.apt] packages = "mailutils, mariadb-server" + [resources.apt.extras.yarn] + repo = "deb https://dl.yarnpkg.com/debian/ stable main" + key = "https://dl.yarnpkg.com/debian/pubkey.gpg" + packages = ["yarn"] + [resources.database] type = "mysql" From e245246c47f2227972fe5f4eff9df3c8335a026e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 22 Jul 2024 20:04:31 +0200 Subject: [PATCH 9/9] Update backup --- scripts/backup | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/backup b/scripts/backup index 52859db..6d95d0a 100755 --- a/scripts/backup +++ b/scripts/backup @@ -17,6 +17,10 @@ ynh_print_info --message="Declaring files to be backed up..." ynh_backup --src_path="$install_dir" +#================================================= +# SYSTEM CONFIGURATION +#================================================= + ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_backup --src_path="/etc/logrotate.d/$app"