Skip to content

Commit 272a81e

Browse files
committed
use sponge as recommended by the textfile scripts repo
Signed-off-by: Alexander Trost <[email protected]>
1 parent f1a6d50 commit 272a81e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LABEL org.opencontainers.image.authors="Alexander Trost <[email protected]>
1515
org.opencontainers.image.version="N/A"
1616

1717
RUN apt-get -q update && \
18-
apt-get install -y --no-install-recommends smartmontools nvme-cli jq moreutils git ca-certificates && \
18+
apt-get install -y --no-install-recommends smartmontools nvme-cli jq moreutils git ca-certificates moreutils && \
1919
apt-get clean && \
2020
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
2121
mkdir -p /scripts && \

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ fi
1818

1919
echo "Starting smartmon.sh loop ..."
2020
while true; do
21-
"/scripts/${SCRIPT}" "${@}" > "/var/lib/node_exporter/${OUTPUT_FILENAME}.prom"
21+
"/scripts/${SCRIPT}" "${@}" | sponge "/var/lib/node_exporter/${OUTPUT_FILENAME}.prom"
2222
sleep "${INTERVAL}"
2323
done

0 commit comments

Comments
 (0)