Skip to content

Commit

Permalink
[bitnami/grafana] Fix check-app-version GOSS test
Browse files Browse the repository at this point in the history
Signed-off-by: David Gomez <dgomezleon@vmware.com>
  • Loading branch information
dgomezleon committed Oct 18, 2024
1 parent 68ce5b6 commit 77bf0ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .vib/grafana/goss/vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ root_dir: /opt/bitnami
version:
# HACK: Fix for Grafana X.Y.Z+security-N releases
bin_name: bash
flag: -c "if [[ \"$APP_VERSION\" =~ -[0-9]+ ]]; then echo "${APP_VERSION//-[0-9]*/}"; else grafana --version; fi"
flag: -c "if [[ \"$APP_VERSION\" =~ -[0-9]+ ]]; then echo "$(grafana --version|awk '{ print $NF }')-${APP_VERSION#*-}"; else grafana --version|awk '{ print $NF }'; fi"
files:
- mode: "0664"
paths:
Expand Down

0 comments on commit 77bf0ba

Please sign in to comment.