From 724abc529f77ec8cf4ec23574c8200bb19109a50 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Mon, 11 Jul 2022 08:23:32 +0200 Subject: [PATCH] Change entrypoint. --- Dockerfile | 2 +- entrypoint.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cf2e53a..e1276a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,5 +11,5 @@ COPY apc-deamon.conf /etc/apcupsd/apcupsd.conf COPY entrypoint.sh /sbin/entrypoint.sh COPY --from=build /go/bin/apcupsd_exporter /sbin/apcupsd_exporter EXPOSE 9162 3551/tcp 3551/udp -ENTRYPOINT /sbin/entrypoint.sh +ENTRYPOINT ["sh", "/sbin/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index 57a5d9f..10d2673 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,6 @@ #!/bin/sh -/sbin/apcupsd - /sbin/apcupsd_exporter -apcupsd.addr localhost:3551 & + +/sbin/apcupsd -b +