aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-18 10:40:00 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-06-26 00:50:56 +0200
commita1c3146595f8f6c7b78adfca8388dd35083b4c7f (patch)
tree18a5e5481d658a18e8ecffe7d329917d40b00f44
parentc230c6632aba600c34301e1664a4b16acec050e9 (diff)
downloadPuppet-a1c3146595f8f6c7b78adfca8388dd35083b4c7f.tar.gz
Puppet-a1c3146595f8f6c7b78adfca8388dd35083b4c7f.tar.zst
Puppet-a1c3146595f8f6c7b78adfca8388dd35083b4c7f.zip
Patch libreoffice
-rw-r--r--.gitmodules3
m---------external_modules/patch0
-rw-r--r--modules/role/files/etherpad/libreoffice_patch.diff11
-rw-r--r--modules/role/manifests/etherpad.pp3
4 files changed, 17 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index 0f21622..d68cf4e 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -64,3 +64,6 @@
64[submodule "external_modules/slack"] 64[submodule "external_modules/slack"]
65 path = external_modules/slack 65 path = external_modules/slack
66 url = git://git.immae.eu/github/cegeka/puppet-slack 66 url = git://git.immae.eu/github/cegeka/puppet-slack
67[submodule "external_modules/patch"]
68 path = external_modules/patch
69 url = git://git.immae.eu/github/tohuwabohu/puppet-patch.git
diff --git a/external_modules/patch b/external_modules/patch
new file mode 160000
Subproject fed3814e759347d72b919ebeb1b6837c5d13373
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 @@
1--- a/LibreOffice.js 2018-06-18 09:54:15.087161212 +0200
2+++ b/LibreOffice.js 2018-06-18 10:33:27.534055021 +0200
3@@ -63,6 +63,7 @@
4 '--invisible',
5 '--nologo',
6 '--nolockcheck',
7+ '-env:UserInstallation=file:///tmp/',
8 '--convert-to', task.type,
9 task.srcFile,
10 '--outdir', tmpDir
11
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 (
13 ensure_packages(["libreoffice-fresh", "libreoffice-fresh-fr", "java-runtime-common", "jre8-openjdk"]) 13 ensure_packages(["libreoffice-fresh", "libreoffice-fresh-fr", "java-runtime-common", "jre8-openjdk"])
14 ensure_packages(["tidy"]) 14 ensure_packages(["tidy"])
15 aur::package { "etherpad-lite": } 15 aur::package { "etherpad-lite": }
16 -> patch::file { "/usr/share/etherpad-lite/src/node/utils/LibreOffice.js":
17 diff_source => "puppet:///modules/role/etherpad/libreoffice_patch.diff",
18 }
16 19
17 $modules = [ 20 $modules = [
18 "ep_aa_file_menu_toolbar", 21 "ep_aa_file_menu_toolbar",