Skip to content

Commit 08e991d

Browse files
committed
fix(update): fix prometheus secret
Before this change, the script was looking for a non-existing variable named '$secrets_env'. This was causing duplicate PROMETHEUS_* variables inside the secrets.env file
1 parent 98b4eff commit 08e991d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imageroot/update-module.d/11set_prometheus_secret

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# SPDX-License-Identifier: GPL-3.0-or-later
66
#
77

8-
if [ -f secret.env ] && ! grep -q "^PROMETHEUS_AUTH_USERNAME=" "$secrets_env"; then
8+
if [ -f secret.env ] && ! grep -q "^PROMETHEUS_AUTH_USERNAME=" secret.env; then
99
prometheus_user=prometheus_$RANDOM
1010
prometheus_secret=$(uuidgen | sha256sum | awk '{print $1}')
1111
echo "PROMETHEUS_AUTH_USERNAME=$prometheus_user" >> secret.env

0 commit comments

Comments
 (0)