[Bug 213355] www/grafana3: RC script does not handle grafana3_conf variable
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Oct 14 22:40:03 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213355
Palle Girgensohn <girgen at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |girgen at FreeBSD.org
--- Comment #1 from Palle Girgensohn <girgen at FreeBSD.org> ---
When using the : construct in Bourne shell, it sets a variable if it not
already set, so we need to load rc.conf *before* the : constructs:
Index: grafana3.in
===================================================================
--- grafana3.in (revision 423994)
+++ grafana3.in (working copy)
@@ -22,6 +22,7 @@
name="grafana3"
rcvar=grafana3_enable
+load_rc_config $name
: ${grafana3_enable:="NO"}
: ${grafana3_user:="%%GRAFANA_USER%%"}
@@ -44,5 +45,4 @@
install -o ${grafana3_user} /dev/null ${pidfile}
}
-load_rc_config $name
run_rc_command "$1"
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list