Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package grafana-image for openSUSE:Factory 
checked in at 2026-09-19 22:20:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/grafana-image (Old)
 and      /work/SRC/openSUSE:Factory/.grafana-image.new.383539 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "grafana-image"

Sat Sep 19 22:20:35 2026 rev:50 rq:1378877 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/grafana-image/grafana-image.changes      
2026-09-01 15:49:23.264914783 +0200
+++ /work/SRC/openSUSE:Factory/.grafana-image.new.383539/grafana-image.changes  
2026-09-19 22:22:00.080753741 +0200
@@ -1,0 +2,5 @@
+Fri Sep 18 16:25:06 UTC 2026 - SUSE Update Bot <[email protected]>
+
+- remove bashisms from entrypoint script
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ run.sh ++++++
--- /var/tmp/diff_new_pack.kDITb7/_old  2026-09-19 22:22:00.700779603 +0200
+++ /var/tmp/diff_new_pack.kDITb7/_new  2026-09-19 22:22:00.703779728 +0200
@@ -1,4 +1,5 @@
-#!/bin/bash
+#!/bin/sh
+
 set -e
 
 PERMISSIONS_OK=0
@@ -34,12 +35,16 @@
         secret_key_varname="GF_AWS_${profile}_SECRET_ACCESS_KEY"
         region_varname="GF_AWS_${profile}_REGION"
 
-        if [ ! -z "${!access_key_varname}" ] && [ ! -z 
"${!secret_key_varname}" ]; then
+        access_key="$(printenv "$access_key_varname")" || access_key=""
+        secret_key="$(printenv "$secret_key_varname")" || secret_key=""
+        if [ ! -z "${access_key}" ] && [ ! -z "${secret_key}" ]; then
             echo "[${profile}]" >> "$GF_PATHS_HOME/.aws/credentials"
-            echo "aws_access_key_id = ${!access_key_varname}" >> 
"$GF_PATHS_HOME/.aws/credentials"
-            echo "aws_secret_access_key = ${!secret_key_varname}" >> 
"$GF_PATHS_HOME/.aws/credentials"
-            if [ ! -z "${!region_varname}" ]; then
-                echo "region = ${!region_varname}" >> 
"$GF_PATHS_HOME/.aws/credentials"
+            echo "aws_access_key_id = ${access_key}" >> 
"$GF_PATHS_HOME/.aws/credentials"
+            echo "aws_secret_access_key = ${secret_key}" >> 
"$GF_PATHS_HOME/.aws/credentials"
+
+            region="$(printenv "$region_varname")" || region=""
+            if [ ! -z "${region}" ]; then
+                echo "region = ${region}" >> "$GF_PATHS_HOME/.aws/credentials"
             fi
         fi
     done
@@ -52,12 +57,14 @@
 # This can be used to carry in Docker secrets.
 for VAR_NAME in $(env | grep '^GF_[^=]\+__FILE=.\+' | sed -r 
"s/([^=]*)__FILE=.*/\1/g"); do
     VAR_NAME_FILE="$VAR_NAME"__FILE
-    if [ "${!VAR_NAME}" ]; then
+    VAR="$(printenv "$VAR_NAME")" || VAR=""
+    if [ "${VAR}" ]; then
         echo >&2 "ERROR: Both $VAR_NAME and $VAR_NAME_FILE are set (but are 
exclusive)"
         exit 1
     fi
-    echo "Getting secret $VAR_NAME from ${!VAR_NAME_FILE}"
-    export "$VAR_NAME"="$(< "${!VAR_NAME_FILE}")"
+    FILE="$(printenv "$VAR_NAME_FILE")" || FILE=""
+    echo "Getting secret $VAR_NAME from ${FILE}"
+    export "$VAR_NAME"="$(cat "${FILE}")"
     unset "$VAR_NAME_FILE"
 done
 
@@ -70,13 +77,16 @@
     IFS=','
     for plugin in ${GF_INSTALL_PLUGINS}; do
         IFS=$OLDIFS
-        if [[ $plugin =~ .*\;.* ]]; then
+        case "$plugin" in
+        *\;*)
             pluginUrl=$(echo "$plugin" | cut -d';' -f 1)
             pluginInstallFolder=$(echo "$plugin" | cut -d';' -f 2)
-            grafana cli --pluginUrl ${pluginUrl} --pluginsDir 
"${GF_PATHS_PLUGINS}" plugins install "${pluginInstallFolder}"
-        else
+            grafana cli --pluginUrl "${pluginUrl}" --pluginsDir 
"${GF_PATHS_PLUGINS}" plugins install "${pluginInstallFolder}"
+            ;;
+        *)
             grafana cli --pluginsDir "${GF_PATHS_PLUGINS}" plugins install 
${plugin}
-        fi
+            ;;
+        esac
     done
   fi
 fi

Reply via email to