Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2017 16:35:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 218010] www/grafana4 grafana-cli installs plugins on /var/db/grafana/plugins
Message-ID:  <bug-218010-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218010

            Bug ID: 218010
           Summary: www/grafana4 grafana-cli installs plugins on
                    /var/db/grafana/plugins
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: swills@FreeBSD.org
          Reporter: borjam@sarenet.es
          Assignee: swills@FreeBSD.org
             Flags: maintainer-feedback?(swills@FreeBSD.org)

After installing www/grafana4 I have noticed that grafana-cli installs plug=
ins
on the wrong directory. It should be /var/db/grafana4/plugins. Instead, it
creates /var/db/grafana/plugins.

Might be that
grafana-4.1.2/src/github.com/grafana/grafana/pkg/cmd/grafana-cli/utils/graf=
ana_path.go
should be patched?=20

A function calles returnOsDefault returns /var/db/grafana/plugins as the
default directory for FreeBSD

----
func returnOsDefault(currentOs string) string {
        switch currentOs {
        case "windows":
                return "../data/plugins"
        case "darwin":
                return "/usr/local/var/lib/grafana/plugins"
        case "freebsd":
                return "/var/db/grafana/plugins"
        default: //"linux"
                return "/var/lib/grafana/plugins"
        }
}
-----

The problem seems to be in the patch-7410 file, which adds support for Free=
BSD
but sets /var/db/grafana instead of /var/db/grafana4 as default directory f=
or
FreeBSD.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218010-13>