This commit is contained in:
2022-06-18 20:27:11 +02:00
parent 7b603ffa48
commit 0671feda78
3 changed files with 3 additions and 0 deletions

View File

@@ -73,6 +73,7 @@ RUN curl -J -L -o /tmp/bashio.tar.gz \
EXPOSE 8125/udp 8092/udp 8094
COPY entrypoint.sh /entrypoint.sh
COPY settings.sh /settings.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["telegraf"]

View File

@@ -1,6 +1,8 @@
#!/bin/bash
set -e
. /settings.sh
if [ "${1:0:1}" = '-' ]; then
set -- telegraf "$@"
fi