From e3b29e25ac01271d0a28fdf6faced407cddfeb4b Mon Sep 17 00:00:00 2001
From: Romain de Laage <romain.delaage@rdelaage.ovh>
Date: Sat, 24 Oct 2020 11:00:52 +0200
Subject: [PATCH] [Etherpad] Add Abiword to import/export document as
 odf/pdf/doc

---
 pica-etherpad/Dockerfile         | 2 +-
 pica-etherpad/docker-compose.yml | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/pica-etherpad/Dockerfile b/pica-etherpad/Dockerfile
index 7275af4e..b09cabe5 100644
--- a/pica-etherpad/Dockerfile
+++ b/pica-etherpad/Dockerfile
@@ -61,7 +61,7 @@ COPY --from=downloader /opt/etherpad-lite /opt/etherpad-lite/
 RUN chown -R etherpad /opt/etherpad-lite
 
 RUN apt-get update && \
-    apt-get install -y curl nano postgresql-client && \
+    apt-get install -y curl nano postgresql-client abiword && \
     chmod +x /opt/etherpad-lite/entrypoint.sh && \
     usermod -d /opt/etherpad-lite etherpad && \
     chown -R etherpad /opt/etherpad-lite && \
diff --git a/pica-etherpad/docker-compose.yml b/pica-etherpad/docker-compose.yml
index 660ed472..123b7fc5 100755
--- a/pica-etherpad/docker-compose.yml
+++ b/pica-etherpad/docker-compose.yml
@@ -40,6 +40,7 @@ services:
       THEME: "colibris"
       TITLE: "Picapad"
       TRUST_PROXY: "true"
+      ABIWORD: "/usr/bin/abiword"
     networks:
       - proxy
       - standard
@@ -78,6 +79,7 @@ services:
       THEME: "colibris"
       TITLE: "Picapad Hebdo"
       TRUST_PROXY: "true"
+      ABIWORD: "/usr/bin/abiword"
     depends_on:
       - etherpad-week-db
     networks:
-- 
GitLab