1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00

Merge pull request #242 from YunoHost-Apps/testing

Testing
This commit is contained in:
tituspijean 2023-08-29 07:55:21 +02:00 committed by GitHub
commit c30378a18f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 6 deletions

View file

@ -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

View file

@ -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

View file

@ -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]

View file

@ -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