mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
Merge pull request #247 from YunoHost-Apps/testing
Upgrade to v5.61.1 and fix configuration files
This commit is contained in:
commit
43e898c1d6
5 changed files with 23 additions and 5 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.60.0~ynh2
|
**Shipped version:** 5.61.1~ynh2
|
||||||
|
|
||||||
## 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.60.0~ynh2
|
**Version incluse :** 5.61.1~ynh2
|
||||||
|
|
||||||
## 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.60.0~ynh2"
|
version = "5.61.1~ynh2"
|
||||||
maintainers = ["Julien Malik"]
|
maintainers = ["Julien Malik"]
|
||||||
|
|
||||||
[upstream]
|
[upstream]
|
||||||
|
@ -44,8 +44,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.60.0.tar.gz"
|
url = "https://github.com/TryGhost/Ghost/archive/refs/tags/v5.61.1.tar.gz"
|
||||||
sha256 = "b240ca5c2591c8d38b2ba2d2f891f553b5734e3329235d40c1b36485bb65f369"
|
sha256 = "e89ea2674d5cc23e5f4366b5e8fc2e9f20c2227e0a003d9b3850a47eb0cd349f"
|
||||||
autoupdate.strategy = "latest_github_release"
|
autoupdate.strategy = "latest_github_release"
|
||||||
|
|
||||||
[resources.system_user]
|
[resources.system_user]
|
||||||
|
|
|
@ -51,6 +51,15 @@ pushd $install_dir/ghost
|
||||||
--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
|
||||||
|
|
||||||
|
config_file=$install_dir/ghost/config.production.json
|
||||||
|
cat <<< $(jq -r '.database.connection.host = "127.0.0.1"' $config_file) > $config_file
|
||||||
|
cat <<< $(jq -r '.mail.options.host = "127.0.0.1"' $config_file) > $config_file
|
||||||
|
cat <<< $(jq -r '.mail.options.ignoreTLS = true' $config_file) > $config_file
|
||||||
|
|
||||||
|
if [ ! -s "$config_file" ]; then
|
||||||
|
ynh_die --message="Something went wrong while setting up the configuration file: it ended up empty."
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SYSTEM CONFIGURATION
|
# SYSTEM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -125,6 +125,15 @@ pushd $install_dir/ghost
|
||||||
--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
|
||||||
|
|
||||||
|
config_file=$install_dir/ghost/config.production.json
|
||||||
|
cat <<< $(jq -r '.database.connection.host = "127.0.0.1"' $config_file) > $config_file
|
||||||
|
cat <<< $(jq -r '.mail.options.host = "127.0.0.1"' $config_file) > $config_file
|
||||||
|
cat <<< $(jq -r '.mail.options.ignoreTLS = true' $config_file) > $config_file
|
||||||
|
|
||||||
|
if [ ! -s "$config_file" ]; then
|
||||||
|
ynh_die --message="Something went wrong while setting up the configuration file: it ended up empty."
|
||||||
|
fi
|
||||||
|
|
||||||
# Cleanup cache
|
# Cleanup cache
|
||||||
ynh_secure_remove --file="$install_dir/.cache/yarn"
|
ynh_secure_remove --file="$install_dir/.cache/yarn"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue