From 9339d618af4426a094ed47bdabce95639780e3f5 Mon Sep 17 00:00:00 2001 From: Eros Nardi Date: Wed, 7 Apr 2021 11:17:27 +0200 Subject: [PATCH] 0 --- .gitignore | 2 ++ Dockerfile | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..36c4259 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +build_run.sh +publish.sh \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index fc8d7d0..d21ec99 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,9 +14,9 @@ RUN apt-get install -y nut-server #Apply configuration RUN sed -i 's/MODE=none/MODE=netserver/g' /etc/nut/nut.conf \ -&& echo "LISTEN 0.0.0.0 3493" >> /etc/nut/upsd.conf \ -&& echo -e "[$NAME] \n driver = $DRIVER \n port = $PORT \n pollfreq = $POLLFREQ \n desc = $DESC" >> /etc/nut/ups.conf \ -&& echo -e "$USERSSTRING" >> /etc/nut/upsd.users \ +&& /bin/echo "LISTEN 0.0.0.0 3493" >> /etc/nut/upsd.conf \ +&& /bin/echo -e "[$NAME] \n driver = $DRIVER \n port = $PORT \n pollfreq = $POLLFREQ \n desc = $DESC" >> /etc/nut/ups.conf \ +&& /bin/echo -e "$USERSSTRING" >> /etc/nut/upsd.users \ && chgrp nut /etc/nut/* COPY entrypoint.sh /