mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
commit
a0c336cbc2
15 changed files with 91 additions and 34 deletions
|
@ -5,4 +5,5 @@
|
||||||
- [Irakurri README euskaraz](README_eu.md)
|
- [Irakurri README euskaraz](README_eu.md)
|
||||||
- [Lire le README en français](README_fr.md)
|
- [Lire le README en français](README_fr.md)
|
||||||
- [Le o README en galego](README_gl.md)
|
- [Le o README en galego](README_gl.md)
|
||||||
|
- [Baca README dalam bahasa bahasa Indonesia](README_id.md)
|
||||||
- [阅读中文(简体)的 README](README_zh_Hans.md)
|
- [阅读中文(简体)的 README](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.
|
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.88.1~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.
|
||||||
|
|
||||||
|
|
||||||
**Versión actual:** 5.87.2~ynh1
|
**Versión actual:** 5.88.1~ynh1
|
||||||
|
|
||||||
## Capturas
|
## Capturas
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
||||||
**Paketatutako bertsioa:** 5.87.2~ynh1
|
**Paketatutako bertsioa:** 5.88.1~ynh1
|
||||||
|
|
||||||
## Pantaila-argazkiak
|
## Pantaila-argazkiak
|
||||||
|
|
||||||
|
|
|
@ -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.87.2~ynh1
|
**Version incluse :** 5.88.1~ynh1
|
||||||
|
|
||||||
## Captures d’écran
|
## Captures d’écran
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
||||||
**Versión proporcionada:** 5.87.2~ynh1
|
**Versión proporcionada:** 5.88.1~ynh1
|
||||||
|
|
||||||
## Capturas de pantalla
|
## Capturas de pantalla
|
||||||
|
|
||||||
|
|
54
README_id.md
Normal file
54
README_id.md
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
<!--
|
||||||
|
N.B.: README ini dibuat secara otomatis oleh <https://github.com/YunoHost/apps/tree/master/tools/readme_generator>
|
||||||
|
Ini TIDAK boleh diedit dengan tangan.
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Ghost untuk YunoHost
|
||||||
|
|
||||||
|
[](https://ci-apps.yunohost.org/ci/apps/ghost/)  
|
||||||
|
|
||||||
|
[](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
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## :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: <https://ghost.org/>
|
||||||
|
- Dokumentasi admin resmi: <https://ghost.org/help/>
|
||||||
|
- Repositori kode aplikasi hulu: <https://github.com/TryGhost/Ghost>
|
||||||
|
- Gudang YunoHost: <https://apps.yunohost.org/app/ghost>
|
||||||
|
- Laporkan bug: <https://github.com/YunoHost-Apps/ghost_ynh/issues>
|
||||||
|
|
||||||
|
## 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:** <https://yunohost.org/packaging_apps>
|
|
@ -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.
|
||||||
|
|
||||||
|
|
||||||
**分发版本:** 5.87.2~ynh1
|
**分发版本:** 5.88.1~ynh1
|
||||||
|
|
||||||
## 截图
|
## 截图
|
||||||
|
|
||||||
|
|
|
@ -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.87.2~ynh1"
|
version = "5.88.1~ynh1"
|
||||||
maintainers = []
|
maintainers = []
|
||||||
|
|
||||||
[upstream]
|
[upstream]
|
||||||
|
@ -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"
|
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]
|
[integration]
|
||||||
yunohost = ">= 11.2"
|
yunohost = ">= 11.2.20"
|
||||||
architectures = "all"
|
architectures = "all"
|
||||||
multi_instance = true
|
multi_instance = true
|
||||||
ldap = false
|
ldap = false
|
||||||
|
@ -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.87.2.tar.gz"
|
url = "https://github.com/TryGhost/Ghost/archive/refs/tags/v5.88.1.tar.gz"
|
||||||
sha256 = "57ea28f90a868a498301208993a693f19f58d570d8fc7aabd022148a08826eb0"
|
sha256 = "3d14cf2caf24e3d09a4d6be784c5801748b6cac9fd72362a6eb7a9892d516608"
|
||||||
autoupdate.strategy = "latest_github_release"
|
autoupdate.strategy = "latest_github_release"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
@ -64,7 +64,12 @@ ram.runtime = "1G"
|
||||||
[resources.ports]
|
[resources.ports]
|
||||||
|
|
||||||
[resources.apt]
|
[resources.apt]
|
||||||
packages = "mailutils mariadb-server"
|
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]
|
[resources.database]
|
||||||
type = "mysql"
|
type = "mysql"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# COMMON VARIABLES
|
# COMMON VARIABLES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
NODEJS_VERSION=18
|
nodejs_version=18
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
|
@ -17,6 +17,10 @@ ynh_print_info --message="Declaring files to be backed up..."
|
||||||
|
|
||||||
ynh_backup --src_path="$install_dir"
|
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/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/logrotate.d/$app"
|
ynh_backup --src_path="/etc/logrotate.d/$app"
|
||||||
|
|
|
@ -12,26 +12,20 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing NodeJS dependencies..."
|
ynh_script_progression --message="Installing NodeJS..." --weight=3
|
||||||
|
|
||||||
# Install Nodejs
|
ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
|
||||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
|
||||||
|
|
||||||
# Upgrade NPM
|
|
||||||
ynh_npm install --global npm@latest
|
|
||||||
|
|
||||||
# Install Yarn
|
|
||||||
ynh_npm install --global yarn
|
|
||||||
|
|
||||||
# Install Ghost-CLI
|
# Install Ghost-CLI
|
||||||
|
|
||||||
mkdir -p $install_dir/ghost
|
mkdir -p $install_dir/ghost
|
||||||
chmod 750 "$install_dir"
|
chmod 750 "$install_dir"
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:$app "$install_dir"
|
chown -R $app:$app "$install_dir"
|
||||||
|
|
||||||
pushd $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 $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) \
|
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 \
|
||||||
|
@ -65,7 +59,7 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding system configurations related to $app..." --weight=1
|
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
|
ynh_add_nginx_config
|
||||||
|
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
|
|
|
@ -29,7 +29,6 @@ ynh_remove_nginx_config
|
||||||
|
|
||||||
ynh_remove_logrotate
|
ynh_remove_logrotate
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -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"
|
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
|
|
||||||
# Install Nodejs
|
# 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"
|
ynh_restore_file --origin_path="/etc/systemd/system/$app.service"
|
||||||
systemctl enable $app.service --quiet
|
systemctl enable $app.service --quiet
|
||||||
|
|
|
@ -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
|
ynh_systemd_action --service_name=$app --action=stop --log_path="systemd" --line_match="Ghost has shut down" --timeout=60
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE DEPENDENCIES
|
# UPGRADE DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
# Install Nodejs
|
ynh_script_progression --message="Updating NodeJS..." --weight=1
|
||||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
|
||||||
|
|
||||||
# Upgrade NPM
|
ynh_exec_warn_less ynh_install_nodejs --nodejs_version="$nodejs_version"
|
||||||
ynh_npm install --global npm@latest
|
|
||||||
|
|
||||||
# Install Yarn
|
|
||||||
ynh_npm install --global yarn
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE
|
# UPGRADE
|
||||||
|
@ -60,7 +56,7 @@ ynh_npm install --global yarn
|
||||||
if ynh_compare_current_package_version --comparison le --version 5.26.4~ynh1
|
if ynh_compare_current_package_version --comparison le --version 5.26.4~ynh1
|
||||||
then
|
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
|
# Create a temporary directory
|
||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
|
@ -86,6 +82,8 @@ then
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
pushd $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 $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) \
|
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 \
|
||||||
|
@ -105,6 +103,8 @@ else
|
||||||
|
|
||||||
# Upgrade Ghost CLI
|
# Upgrade Ghost CLI
|
||||||
pushd $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 $ynh_npm install ghost-cli@latest
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue