Skip to content

Commit df20875

Browse files
Fix bugs on entrypoint.sh
The latest telegraf version is not accepting the config path through environment variable. So defining it through --config option on telegraf command works.
1 parent c72441e commit df20875

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bin/entrypoint.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright 2017 Comcast Cable Communications Management, LLC
3+
# Copyright 2024 Comcast Cable Communications Management, LLC
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -17,11 +17,10 @@
1717
PATH="$PWD/bin:$PATH"
1818

1919
TELEGRAF_CONFIG_PATH=${TELEGRAF_CONFIG_PATH:-telegraf.conf}
20-
export TELEGRAF_CONFIG_PATH
2120

2221
TELEGRAF_CONFIG_DIRECTORY=${TELEGRAF_CONFIG_DIRECTORY:-conf}
2322

2423
config-influxdb-output.sh
2524
config-global-tags.sh
2625

27-
exec telegraf -config-directory "$TELEGRAF_CONFIG_DIRECTORY"
26+
exec telegraf -config-directory "$TELEGRAF_CONFIG_DIRECTORY" --config "$TELEGRAF_CONFIG_PATH"

0 commit comments

Comments
 (0)