Debian 13, OO Docs 9.3.1-8 deactivates NginX 'default' site

I’m using OnlyOffice Docs 9.3.1-8 from the Debian package. Since 9.3.0, the postinst script deletes the file /etc/nginx/sites-enabled/default without question. What is the purpose of such action? The package cannot know if I’m using the ‘default’ site, and it does not own this file. Of course, I can work around it by restoring the symlink whenever an update arrives, and I know how. But I’d like to know the reasoning behind.

Hello @paule58

Document Server uses port 80 by default, it ensures that the default does not occupy it. Leaving this config in clean installations would break Document Server.

In my instance, this condition does not apply.

  1. My ‘default’ site does not listen on port 80. The installer does not have a reason to deactivate it.
  2. I have debconf’ed docserver away from port 80, so there’s no reason to do something about it.
  3. At least I would expect if a package wants to delete things it doesn’t own, it should warn the operator (or even better, give him a choice).

I’d suggest that the corresponding documentation (Installing ONLYOFFICE Docs for Debian, Ubuntu, and derivatives) at least carry a big fat warning about this fact, so the operator will know in advance.

My workaround will be to simply rename the ‘default’ site in NginX, so the OO Docs installer won’t clobber it anymore.

I have forwarded your query to QA team for review, please await the feedback.

Many thanks!

1 Like

Sorry for the delay. After a thorough research, we have added this issue into our tracking system under the number 81502. Once any news comes up, I’ll let you know.