From a1c3146595f8f6c7b78adfca8388dd35083b4c7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 18 Jun 2018 10:40:00 +0200 Subject: Patch libreoffice --- modules/role/files/etherpad/libreoffice_patch.diff | 11 +++++++++++ modules/role/manifests/etherpad.pp | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 modules/role/files/etherpad/libreoffice_patch.diff (limited to 'modules') diff --git a/modules/role/files/etherpad/libreoffice_patch.diff b/modules/role/files/etherpad/libreoffice_patch.diff new file mode 100644 index 0000000..dbfdf1a --- /dev/null +++ b/modules/role/files/etherpad/libreoffice_patch.diff @@ -0,0 +1,11 @@ +--- a/LibreOffice.js 2018-06-18 09:54:15.087161212 +0200 ++++ b/LibreOffice.js 2018-06-18 10:33:27.534055021 +0200 +@@ -63,6 +63,7 @@ + '--invisible', + '--nologo', + '--nolockcheck', ++ '-env:UserInstallation=file:///tmp/', + '--convert-to', task.type, + task.srcFile, + '--outdir', tmpDir + diff --git a/modules/role/manifests/etherpad.pp b/modules/role/manifests/etherpad.pp index 826525e..476a210 100644 --- a/modules/role/manifests/etherpad.pp +++ b/modules/role/manifests/etherpad.pp @@ -13,6 +13,9 @@ class role::etherpad ( ensure_packages(["libreoffice-fresh", "libreoffice-fresh-fr", "java-runtime-common", "jre8-openjdk"]) ensure_packages(["tidy"]) aur::package { "etherpad-lite": } + -> patch::file { "/usr/share/etherpad-lite/src/node/utils/LibreOffice.js": + diff_source => "puppet:///modules/role/etherpad/libreoffice_patch.diff", + } $modules = [ "ep_aa_file_menu_toolbar", -- cgit v1.2.3