mirror of
https://github.com/Nardo86/nut-docker.git
synced 2025-06-05 21:49:27 +02:00
0
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
build_run.sh
|
||||||
|
publish.sh
|
@@ -14,9 +14,9 @@ RUN apt-get install -y nut-server
|
|||||||
|
|
||||||
#Apply configuration
|
#Apply configuration
|
||||||
RUN sed -i 's/MODE=none/MODE=netserver/g' /etc/nut/nut.conf \
|
RUN sed -i 's/MODE=none/MODE=netserver/g' /etc/nut/nut.conf \
|
||||||
&& echo "LISTEN 0.0.0.0 3493" >> /etc/nut/upsd.conf \
|
&& /bin/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 \
|
&& /bin/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 -e "$USERSSTRING" >> /etc/nut/upsd.users \
|
||||||
&& chgrp nut /etc/nut/*
|
&& chgrp nut /etc/nut/*
|
||||||
|
|
||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
|
Reference in New Issue
Block a user