From 684abcdddb1f6413d8f2cedebb36e67fa7ae2280 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jan 27 2021 00:15:37 +0000 Subject: import grafana-7.3.6-2.el8 --- diff --git a/SOURCES/001-wrappers-grafana-cli.patch b/SOURCES/001-wrappers-grafana-cli.patch index fb3d2cc..722d61f 100644 --- a/SOURCES/001-wrappers-grafana-cli.patch +++ b/SOURCES/001-wrappers-grafana-cli.patch @@ -32,14 +32,16 @@ index 9cad151c0d..a786edc596 100755 if [ -f "$DEFAULT" ]; then . "$DEFAULT" fi -@@ -36,4 +38,11 @@ OPTS="--homepath=${GRAFANA_HOME} \ +@@ -36,4 +38,13 @@ OPTS="--homepath=${GRAFANA_HOME} \ cfg:default.paths.logs=${LOG_DIR} \ cfg:default.paths.plugins=${PLUGINS_DIR}'" -eval $EXECUTABLE "$OPTS" "$@" +if [ "$(id -u)" -eq 0 ]; then ++ cd "${GRAFANA_HOME}" + exec runuser -u "${GRAFANA_USER}" -- "$EXECUTABLE" "$OPTS" "$@" +elif [ "$(id -u -n)" = "${GRAFANA_USER}" ]; then ++ cd "${GRAFANA_HOME}" + exec "$EXECUTABLE" "$OPTS" "$@" +else + echo "Please run this script as user \"${GRAFANA_USER}\" or root." diff --git a/SOURCES/distro-defaults.ini b/SOURCES/distro-defaults.ini index 62b1f3a..d925297 100644 --- a/SOURCES/distro-defaults.ini +++ b/SOURCES/distro-defaults.ini @@ -769,7 +769,7 @@ disable_sanitize_html = false enable_alpha = false app_tls_skip_verify_insecure = false # Enter a comma-separated list of plugin identifiers to identify plugins that are allowed to be loaded even if they lack a valid signature. -allow_loading_unsigned_plugins = +allow_loading_unsigned_plugins = pcp-redis-datasource marketplace_url = https://grafana.com/grafana/plugins/ #################################### Grafana Image Renderer Plugin ########################## diff --git a/SPECS/grafana.spec b/SPECS/grafana.spec index 852ffcb..527d0ff 100644 --- a/SPECS/grafana.spec +++ b/SPECS/grafana.spec @@ -27,7 +27,7 @@ end} Name: grafana Version: 7.3.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Metrics dashboard and graph editor License: ASL 2.0 URL: https://grafana.org @@ -627,6 +627,10 @@ export TZ=GMT %changelog +* Fri Jan 22 2021 Andreas Gerstmayr 7.3.6-2 +- change working dir to $GRAFANA_HOME in grafana-cli wrapper (fixes Red Hat BZ #1916083) +- add pcp-redis-datasource to allow_loading_unsigned_plugins config option + * Mon Dec 21 2020 Andreas Gerstmayr 7.3.6-1 - update to 7.3.6 tagged upstream community sources, see CHANGELOG - remove dependency on SAML (not supported in the open source version of Grafana)