[Libreoffice-commits] online.git: debian/loolwsd.postinst.in docker/Dockerfile loolwsd.spec.in

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Feb 7 13:33:48 UTC 2019


 debian/loolwsd.postinst.in |    2 +-
 docker/Dockerfile          |    2 +-
 loolwsd.spec.in            |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit f1be65668c749526011faa39266f289522a9cf68
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Tue Feb 5 19:55:57 2019 +0000
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Feb 7 14:33:30 2019 +0100

    systemplate files should not be writable by lool user
    
    Change-Id: Ifb4fb7e5d5c1861b5e26bb6a710acb28e546c846
    Reviewed-on: https://gerrit.libreoffice.org/67425
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/debian/loolwsd.postinst.in b/debian/loolwsd.postinst.in
index ef2ba9eb1..942cbc695 100755
--- a/debian/loolwsd.postinst.in
+++ b/debian/loolwsd.postinst.in
@@ -23,7 +23,7 @@ case "$1" in
 
 	fc-cache @LO_PATH@/share/fonts/truetype
 
-	su lool --shell=/bin/sh -c "loolwsd-systemplate-setup /opt/lool/systemplate @LO_PATH@ >/dev/null 2>&1"
+	loolwsd-systemplate-setup /opt/lool/systemplate @LO_PATH@ >/dev/null 2>&1
 	;;
 
 esac
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 8f32fd8a5..164a6f6af 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -32,7 +32,7 @@ RUN rm -rf /opt/lool
 RUN mkdir -p /opt/lool/child-roots
 RUN chown lool: /opt/lool
 RUN chown lool: /opt/lool/child-roots
-RUN su lool --shell=/bin/sh -c "loolwsd-systemplate-setup /opt/lool/systemplate /opt/libreoffice >/dev/null 2>&1"
+RUN loolwsd-systemplate-setup /opt/lool/systemplate /opt/libreoffice >/dev/null 2>&1
 RUN touch /var/log/loolwsd.log
 RUN chown lool /var/log/loolwsd.log
 CMD bash /run-lool.sh
diff --git a/loolwsd.spec.in b/loolwsd.spec.in
index c0e8847a4..790e12f67 100644
--- a/loolwsd.spec.in
+++ b/loolwsd.spec.in
@@ -152,7 +152,7 @@ chown lool:lool ${loolparent}/lool
 chown lool:lool ${loolparent}/lool/child-roots
 
 fc-cache ${loroot}/share/fonts/truetype
-su lool -c "loolwsd-systemplate-setup ${loolparent}/lool/systemplate ${loroot} >/dev/null 2>&1"
+loolwsd-systemplate-setup ${loolparent}/lool/systemplate ${loroot} >/dev/null 2>&1
 
 %if 0%{?fedora} || 0%{?rhel} >= 7
 %systemd_post loolwsd.service


More information about the Libreoffice-commits mailing list