Bug 270561 - www/onlyoffice-documentserver wrong path in nginx config files
Summary: www/onlyoffice-documentserver wrong path in nginx config files
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mikael Urankar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-31 07:16 UTC by freebsd.org
Modified: 2023-03-31 13:40 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (mikael)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description freebsd.org 2023-03-31 07:16:10 UTC
I noticed that the config files in /usr/local/etc/onlyoffice/documentserver/nginx/ are referencing other config files, but the paths are wrong.

The rerefenced config files reside in

/usr/local/etc/onlyoffice/documentserver/nginx/includes/

("onlyoffice" only once in the path) and the references are pointing to

/usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/

("onlyoffice/onlyoffice" in the path). Changing "onlyoffice/onlyoffice" in the config files to "onlyoffice" fixes this.

Here are all affected references I found:

# grep onlyoffice/onlyoffice /usr/local/etc/onlyoffice/documentserver/nginx/*
/usr/local/etc/onlyoffice/documentserver/nginx/ds-ssl.conf:include /usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/http-common.conf;
/usr/local/etc/onlyoffice/documentserver/nginx/ds-ssl.conf:  include /usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/ds-common.conf;
/usr/local/etc/onlyoffice/documentserver/nginx/ds-ssl.conf:  include /usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/ds-docservice.conf;
/usr/local/etc/onlyoffice/documentserver/nginx/ds-ssl.conf:  include /usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/ds-*.conf;
/usr/local/etc/onlyoffice/documentserver/nginx/ds-ssl.conf.sample:include /usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/http-common.conf;
/usr/local/etc/onlyoffice/documentserver/nginx/ds-ssl.conf.sample:  include /usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/ds-common.conf;
/usr/local/etc/onlyoffice/documentserver/nginx/ds-ssl.conf.sample:  include /usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/ds-docservice.conf;
/usr/local/etc/onlyoffice/documentserver/nginx/ds-ssl.conf.sample:  include /usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/ds-*.conf;
/usr/local/etc/onlyoffice/documentserver/nginx/ds.conf:include /usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/http-common.conf;
/usr/local/etc/onlyoffice/documentserver/nginx/ds.conf:  include /usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/ds-*.conf;
/usr/local/etc/onlyoffice/documentserver/nginx/ds.conf.sample:include /usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/http-common.conf;
/usr/local/etc/onlyoffice/documentserver/nginx/ds.conf.sample:  include /usr/local/etc/onlyoffice/onlyoffice/documentserver/nginx/includes/ds-*.conf;
grep: /usr/local/etc/onlyoffice/documentserver/nginx/includes: Is a directory
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-03-31 13:38:17 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=aacdea631791805e07989e32744ce91ca34110b4

commit aacdea631791805e07989e32744ce91ca34110b4
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2023-03-31 13:32:56 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2023-03-31 13:32:56 +0000

    www/onlyoffice-documentserver: Remove redundant "onlyoffice" in nginx conf

    ETCDIR already contains "onlyoffice", remove it from the nginx conf

    PR:             270561
    Reported by:    freebsd.org@vollkorn.cryptobitch.de

 www/onlyoffice-documentserver/Makefile                                  | 1 +
 .../files/patch-document-server-package_Makefile                        | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2023-03-31 13:40:29 UTC
sorry for this problem :/
It should be fixed now, thanks for the report!