diff --git a/README.md b/README.md index 2dbd62e..d162fdb 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.59.1~ynh1 +**Shipped version:** 5.60.0~ynh1 ## Screenshots diff --git a/README_fr.md b/README_fr.md index 932ac08..018b424 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.59.1~ynh1 +**Version incluse :** 5.60.0~ynh1 ## Captures d’écran diff --git a/manifest.toml b/manifest.toml index fc42627..2565650 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.59.1~ynh1" +version = "5.60.0~ynh1" 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.59.1.tar.gz" - sha256 = "0718612fbee2108b77f8f64be01fd7b65c2ca0aa9e3f96bfc092b424b4b253a6" + url = "https://github.com/TryGhost/Ghost/archive/refs/tags/v5.60.0.tar.gz" + sha256 = "b240ca5c2591c8d38b2ba2d2f891f553b5734e3329235d40c1b36485bb65f369" autoupdate.strategy = "latest_github_release" [resources.system_user] diff --git a/scripts/upgrade b/scripts/upgrade index bfb99d2..16ea596 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,6 +24,14 @@ if [ -z "$db_name" ]; then ynh_app_setting_set --app=$app --key=db_name --value=$db_name fi +# Make sure the .config directory belongs to $app:$app +if [[ ! -d "$install_dir/.config" ]]; then + mkdir $install_dir/.config + chown $app:$app $install_dir/.config +elif [[ $(stat -c "%U:%G" $install_dir/.config) != "$app:$app" ]]; then + chown -R $app:$app $install_dir/.config +fi + #================================================= # STOP SYSTEMD SERVICE #================================================= @@ -100,8 +108,10 @@ else ynh_exec_as $app $ynh_node_load_PATH $ynh_npm install ghost-cli@latest popd - # Upgrade Ghost itself pushd $install_dir/ghost + # Make sure the app does not expect to manage its own process + ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost config --process local + # Upgrade Ghost itself ynh_exec_as $app $ynh_node_load_PATH $install_dir/node_modules/ghost-cli/bin/ghost update $(ynh_app_upstream_version) \ --no-prompt --no-auto-rollback --no-restart popd