[Libreoffice-bugs] [Bug 116080] New: Packages on https://www.collaboraoffice.com/code/ improvement
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Feb 28 10:33:56 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=116080
Bug ID: 116080
Summary: Packages on https://www.collaboraoffice.com/code/
improvement
Product: LibreOffice Online
Version: unspecified
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: trash at x-net.at
Hi
The binary packages on https://www.collaboraoffice.com/code/ for
Debian/Ubuntu/... need some improvements.
They are not working out of the box after installation and debugging is hard
because the logfile is disabled by default.
Logfile:
Please consider to change the default value in "/etc/loolwsd/loolwsd.xml" for
"<file enable="false">" from "false" to "true" (or add a sed to the postinstall
script).
Add this to the postinstall script so the logfile works:
touch /var/log/loolwsd.log
chown lool /var/log/loolwsd.log
Logrotate:
If there is an logfile there should be logrotate.
Please add "/etc/logrotate.d/loolwsd" to the package.
Yes there is a build in logrodate which may be fail because of permissions or
something else (So I think logrotate is the better solution)
/etc/logrotate.d/loolwsd (works for me, maybe there is a better solution):
/var/log/loolwsd.log
{
rotate 7
daily
missingok
notifempty
delaycompress
compress
create 644 lool root
postrotate
service loolwsd restart
endscript
}
Certificates:
This is the reason why the package is not working out of the box (certificates
are missing).
Please add this to the postinstall script (or tweak this):
openssl genrsa -out /etc/loolwsd/key.pem 4096
openssl req -out /etc/loolwsd/cert.csr -key /etc/loolwsd/key.pem -new -sha256
-nodes -subj "/CN=$(hostname).$(dnsdomainname)"
openssl x509 -req -days 3650 -in /etc/loolwsd/cert.csr -signkey
/etc/loolwsd/key.pem -out /etc/loolwsd/cert.pem
openssl x509 -req -days 3650 -in /etc/loolwsd/cert.csr -signkey
/etc/loolwsd/key.pem -out /etc/loolwsd/ca-chain.cert.pem
chown lool:lool /etc/loolwsd/key.pem
chmod 600 /etc/loolwsd/key.pem
This will create self signed certificates valid for 10 years (like the apache
snakeoil certificates)
This changes should work on all Debian based distributions (debian/ubuntu).
The logrotate part maybe need some changes for centos or opensuse.
Thanks
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180228/669a8a69/attachment.html>
More information about the Libreoffice-bugs
mailing list