diff --git a/README.md b/README.md index ee71816..32d6585 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.60.0~ynh2 +**Shipped version:** 5.61.1~ynh2 ## Screenshots diff --git a/README_fr.md b/README_fr.md index a55ec51..749c2cd 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.60.0~ynh2 +**Version incluse :** 5.61.1~ynh2 ## Captures d’écran diff --git a/manifest.toml b/manifest.toml index d3d2509..26211db 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.60.0~ynh2" +version = "5.61.1~ynh2" maintainers = ["Julien Malik"] [upstream] @@ -44,8 +44,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.60.0.tar.gz" - sha256 = "b240ca5c2591c8d38b2ba2d2f891f553b5734e3329235d40c1b36485bb65f369" + url = "https://github.com/TryGhost/Ghost/archive/refs/tags/v5.61.1.tar.gz" + sha256 = "e89ea2674d5cc23e5f4366b5e8fc2e9f20c2227e0a003d9b3850a47eb0cd349f" autoupdate.strategy = "latest_github_release" [resources.system_user] diff --git a/scripts/install b/scripts/install index bb610f4..feb96e3 100644 --- a/scripts/install +++ b/scripts/install @@ -51,6 +51,15 @@ pushd $install_dir/ghost --mail SMTP --mailuser noreply@$domain --mailpass $mail_pwd --mailhost 127.0.0.1 --mailport 25 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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 3fdd90f..d64d26b 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -125,6 +125,15 @@ pushd $install_dir/ghost --mail SMTP --mailuser noreply@$domain --mailpass $mail_pwd --mailhost 127.0.0.1 --mailport 25 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 ynh_secure_remove --file="$install_dir/.cache/yarn"