diff --git a/promtail/Dockerfile b/promtail/Dockerfile index 0d37b8b..c21db4f 100644 --- a/promtail/Dockerfile +++ b/promtail/Dockerfile @@ -42,9 +42,9 @@ RUN case "${BUILD_ARCH}" in \ # Add promtail RUN apk add --no-cache curl tar unzip; \ curl -LO "https://github.com/grafana/loki/releases/download/v${PROMTAIL_VERSION}/promtail-linux-amd64.zip"; \ - unzip promtail-linux-amd64.zip; \ - mv promtail-linux-amd64 /data/promtail-cmd; \ - chmod +x /data/promtail-cmd; \ + unzip promtail-linux-amd64.zip -d /usr/bin; \ + mv /usr/bin/promtail-linux-amd64 /usr/bin/promtail; \ + chmod a+x /usr/bin/promtail; \ rm promtail-linux-amd64.zip; WORKDIR /data/promtail diff --git a/promtail/rootfs/etc/services.d/promtail/run b/promtail/rootfs/etc/services.d/promtail/run index dce15da..d5f6a71 100644 --- a/promtail/rootfs/etc/services.d/promtail/run +++ b/promtail/rootfs/etc/services.d/promtail/run @@ -37,4 +37,4 @@ if [ "${log_level}" == "debug" ]; then fi bashio::log.info "Handing over control to Promtail..." -/data/promtail-cmd "${promtail_args[@]}" +/usr/bin/promtail "${promtail_args[@]}"