[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - debian/loolwsd.postinst.in loolwsd.spec.in
Andras Timar
andras.timar at collabora.com
Tue May 2 11:30:25 UTC 2017
debian/loolwsd.postinst.in | 2 ++
loolwsd.spec.in | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 33cfc8fb096842dfc3c3aa3a9ba27e597d84a253
Author: Andras Timar <andras.timar at collabora.com>
Date: Sat Apr 29 20:34:44 2017 +0200
non-world-readable loolwsd.xml in packages
Change-Id: Ibe91699f8d126dd34c1041fcfaaf471974387e47
Reviewed-on: https://gerrit.libreoffice.org/37103
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 75ffb82e..a7cb8133 100755
--- a/debian/loolwsd.postinst.in
+++ b/debian/loolwsd.postinst.in
@@ -10,6 +10,8 @@ case "$1" in
adduser --quiet --system --group --home /opt/lool lool
mkdir -p /var/cache/loolwsd && chown lool: /var/cache/loolwsd
rm -rf /var/cache/loolwsd/*
+ chown lool: /etc/loolwsd/loolwsd.xml
+ chmod 640 /etc/loowsd/loolwsd.xml
# We assume that the LibreOffice to be used is built TDF-style
# and installs in @LO_PATH@, and that /opt/lool is
diff --git a/loolwsd.spec.in b/loolwsd.spec.in
index 7a345c56..512cfd87 100644
--- a/loolwsd.spec.in
+++ b/loolwsd.spec.in
@@ -110,7 +110,7 @@ echo "0 0 */1 * * root find /var/cache/loolwsd -name \"*.png\" -a -atime +10 -ex
%endif
%config(noreplace) /etc/cron.d/loolwsd.cron
-%config(noreplace) /etc/loolwsd/loolwsd.xml
+%config(noreplace) %attr(640, lool, root) /etc/loolwsd/loolwsd.xml
%config /etc/loolwsd/loolkitconfig.xcu
%doc README
More information about the Libreoffice-commits
mailing list