diff --git a/patches/core/OpenSans-Bold.woff b/patches/core/OpenSans-Bold.woff deleted file mode 100644 index ee2ea79..0000000 Binary files a/patches/core/OpenSans-Bold.woff and /dev/null differ diff --git a/patches/core/OpenSans-Light.woff b/patches/core/OpenSans-Light.woff deleted file mode 100644 index c1ab595..0000000 Binary files a/patches/core/OpenSans-Light.woff and /dev/null differ diff --git a/patches/core/OpenSans.woff b/patches/core/OpenSans.woff deleted file mode 100644 index 2abc3ed..0000000 Binary files a/patches/core/OpenSans.woff and /dev/null differ diff --git a/patches/core/fonts.css b/patches/core/fonts.css deleted file mode 100644 index ec5212a..0000000 --- a/patches/core/fonts.css +++ /dev/null @@ -1,18 +0,0 @@ -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 300; - src: local('Open Sans Light'), local('OpenSans-Light'), url(../fonts/OpenSans-Light.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 400; - src: local('Open Sans'), local('OpenSans'), url(../fonts/OpenSans.woff) format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 700; - src: local('Open Sans Bold'), local('OpenSans-Bold'), url(../fonts/OpenSans-Bold.woff) format('woff'); -} diff --git a/patches/theme/NotoSerif-Bold.woff b/patches/theme/NotoSerif-Bold.woff deleted file mode 100644 index 04ecc9c..0000000 Binary files a/patches/theme/NotoSerif-Bold.woff and /dev/null differ diff --git a/patches/theme/NotoSerif-Italic.woff b/patches/theme/NotoSerif-Italic.woff deleted file mode 100644 index 004d361..0000000 Binary files a/patches/theme/NotoSerif-Italic.woff and /dev/null differ diff --git a/patches/theme/NotoSerif.woff b/patches/theme/NotoSerif.woff deleted file mode 100644 index 964e2ef..0000000 Binary files a/patches/theme/NotoSerif.woff and /dev/null differ diff --git a/patches/theme/OpenSans-Bold.woff b/patches/theme/OpenSans-Bold.woff deleted file mode 100644 index ee2ea79..0000000 Binary files a/patches/theme/OpenSans-Bold.woff and /dev/null differ diff --git a/patches/theme/OpenSans.woff b/patches/theme/OpenSans.woff deleted file mode 100644 index 2abc3ed..0000000 Binary files a/patches/theme/OpenSans.woff and /dev/null differ diff --git a/patches/theme/fonts.css b/patches/theme/fonts.css deleted file mode 100644 index 11432dc..0000000 --- a/patches/theme/fonts.css +++ /dev/null @@ -1,31 +0,0 @@ -@font-face { - font-family: 'Noto Serif'; - font-style: normal; - font-weight: 400; - src: local('Noto Serif'), local('NotoSerif'), url('../fonts/NotoSerif.woff') format('woff'); -} -@font-face { - font-family: 'Noto Serif'; - font-style: normal; - font-weight: 700; - src: local('Noto Serif Bold'), local('NotoSerif-Bold'), url('../fonts/NotoSerif-Bold.woff') format('woff'); -} -@font-face { - font-family: 'Noto Serif'; - font-style: italic; - font-weight: 400; - src: local('Noto Serif Italic'), local('NotoSerif-Italic'), url('../fonts/NotoSerif-Italic.woff') format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 400; - src: local('Open Sans'), local('OpenSans'), url('../fonts/OpenSans.woff') format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 700; - src: local('Open Sans Bold'), local('OpenSans-Bold'), url('../fonts/OpenSans-Bold.woff') format('woff'); -} - diff --git a/scripts/install b/scripts/install index d544dde..950a52e 100644 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 290de65..80d876c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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"