<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Packages on https://www.collaboraoffice.com/code/ improvement"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116080">116080</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Packages on https://www.collaboraoffice.com/code/ improvement
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice Online
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>trash@x-net.at
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hi

The binary packages on <a href="https://www.collaboraoffice.com/code/">https://www.collaboraoffice.com/code/</a> 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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>