Skip to content

Commit 975df90

Browse files
committed
telegraf: remove already included configs
1 parent c933fe1 commit 975df90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.templates/telegraf/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ENV BASELINE_CONFIG=/${IOTSTACK_DEFAULTS_DIR}/telegraf-reference.conf
2020
ENV IOTSTACK_CONFIG=/${IOTSTACK_DEFAULTS_DIR}/telegraf.conf
2121
RUN cp /etc/telegraf/telegraf.conf ${BASELINE_CONFIG} && \
2222
cat /${IOTSTACK_DEFAULTS_DIR}/auto_include/*.conf >> ${BASELINE_CONFIG} && \
23+
rm -r /${IOTSTACK_DEFAULTS_DIR}/auto_include && \
2324
chmod 444 ${BASELINE_CONFIG} && \
2425
grep -v -e "^[ ]*#" -e "^[ ]*$" ${BASELINE_CONFIG} >${IOTSTACK_CONFIG} && \
2526
sed -i '/^\[\[outputs.influxdb\]\]/a\ \ urls = ["http://influxdb:8086"]' ${IOTSTACK_CONFIG}

0 commit comments

Comments
 (0)