Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/documentserver_community.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-01-27 15:27:27 +0300
committerRobin Appelman <robin@icewind.nl>2020-01-27 15:27:27 +0300
commit740bd62a2500dda1a69a849532025607ef8dbf2e (patch)
tree7c4be91ef85839d79571e0f0655d48807e17c163 /lib
parent95e0af67a1ae27e5482f86c1d8af0ae085d0fcf8 (diff)
make allfontsgen executable if it isnt
Diffstat (limited to 'lib')
-rw-r--r--lib/Document/FontManager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Document/FontManager.php b/lib/Document/FontManager.php
index 2fce6b5..077b573 100644
--- a/lib/Document/FontManager.php
+++ b/lib/Document/FontManager.php
@@ -40,6 +40,10 @@ class FontManager {
}
public function rebuildFonts() {
+ if (!is_executable(ConverterBinary::BINARY_DIRECTORY . '/../../tools/allfontsgen')) {
+ @chmod(ConverterBinary::BINARY_DIRECTORY . '/../../tools/allfontsgen', 0755);
+ }
+
$this->localAppData->getReadLocalPath($this->getFontDir(), function (string $fontsDir) {
$cmd = '../../tools/allfontsgen \
--input="../../../core-fonts" \