mirror of
https://github.com/YunoHost-Apps/ghost_ynh.git
synced 2024-09-03 19:16:02 +02:00
Patch for 5.21+ compatibility
This commit is contained in:
commit
e3e37eefa8
8 changed files with 14 additions and 8 deletions
|
@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
|||
|
||||
Publishing, memberships, subscriptions and newsletters platform
|
||||
|
||||
**Shipped version:** 5.24.2~ynh1
|
||||
**Shipped version:** 5.26.4~ynh1
|
||||
|
||||
## Screenshots
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
|||
|
||||
Plateforme d'édition, d'adhésions, d'abonnements et de newsletters
|
||||
|
||||
**Version incluse :** 5.24.2~ynh1
|
||||
**Version incluse :** 5.26.4~ynh1
|
||||
|
||||
## Captures d'écran
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
SOURCE_URL=https://github.com/TryGhost/Admin/archive/refs/tags/v5.24.2.zip
|
||||
SOURCE_URL=https://github.com/TryGhost/Admin/archive/refs/tags/v5.26.4.zip
|
||||
SOURCE_SUM=d5558cd419c8d46bdc958064cb97f963d1ea793866414c025906ec15033512ed
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://api.github.com/repos/TryGhost/Ghost/zipball/v5.24.2
|
||||
SOURCE_SUM=b49e1ba1b252f199be949ca268692f08930b97a26d2dbd3a7d95d9a25340c63c
|
||||
SOURCE_URL=https://api.github.com/repos/TryGhost/Ghost/zipball/v5.26.4
|
||||
SOURCE_SUM=785ba995dbe68d155d509b8faa77bfd2b7c4d0f49be532b7d76cd73ce541a7da
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
SOURCE_URL=https://github.com/TryGhost/Casper/archive/refs/tags/v5.4.1.zip
|
||||
SOURCE_SUM=88d7d887a40c671c36011ec19f5fbacc7e640b961fd7f02bc24032355212d0ea
|
||||
SOURCE_URL=https://github.com/TryGhost/Casper/archive/refs/tags/v5.4.4.zip
|
||||
SOURCE_SUM=2d8d7d622944844cee8a9d954cbc5d3123196e5214eedc91d586853bdeeb10ff
|
||||
SOURCE_SUM_PRG=sha256sum
|
||||
SOURCE_FORMAT=zip
|
||||
SOURCE_IN_SUBDIR=true
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "Publishing, memberships, subscriptions and newsletters platform",
|
||||
"fr": "Plateforme d'édition, d'adhésions, d'abonnements et de newsletters"
|
||||
},
|
||||
"version": "5.24.2~ynh1",
|
||||
"version": "5.26.4~ynh1",
|
||||
"url": "https://ghost.org/",
|
||||
"upstream": {
|
||||
"license": "MIT",
|
||||
|
|
|
@ -108,6 +108,9 @@ chmod 750 "$final_path"
|
|||
chmod -R o-rwx "$final_path"
|
||||
chown -R $app:www-data "$final_path"
|
||||
|
||||
# Patch https://github.com/YunoHost-Apps/ghost_ynh/issues/199
|
||||
ynh_replace_string --match_string=".whereRaw('posts.id" --replace_string=".whereRaw('\`posts\`.id" --target_file="$final_path/ghost/core/core/server/models/post.js"
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -129,6 +129,9 @@ then
|
|||
|
||||
# Remove the tmp directory securely
|
||||
ynh_secure_remove --file="$tmpdir"
|
||||
|
||||
# Patch https://github.com/YunoHost-Apps/ghost_ynh/issues/199
|
||||
ynh_replace_string --match_string=".whereRaw('posts.id" --replace_string=".whereRaw('\`posts\`.id" --target_file="$final_path/ghost/core/core/server/models/post.js"
|
||||
fi
|
||||
|
||||
chmod 750 "$final_path"
|
||||
|
|
Loading…
Add table
Reference in a new issue