Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions images/nut-upsd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ENV ACTIONS= \
NUT_QUIET_INIT_SSL=true \
NUT_QUIET_INIT_UPSNOTIFY=true \
POLLINTERVAL= \
POLLONLY= \
PORT=auto \
SDORDER= \
SECRETNAME=nut-upsd-password \
Expand Down
1 change: 1 addition & 0 deletions images/nut-upsd/Dockerfile.arm32
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ENV API_USER=upsmon \
GROUP=nut \
NAME=ups \
POLLINTERVAL= \
POLLONLY= \
PORT=auto \
SDORDER= \
SECRET=nut-upsd-password \
Expand Down
1 change: 1 addition & 0 deletions images/nut-upsd/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ENV API_USER=upsmon \
GROUP=nut \
NAME=ups \
POLLINTERVAL= \
POLLONLY= \
PORT=auto \
SDORDER= \
SECRET=nut-upsd-password \
Expand Down
1 change: 1 addition & 0 deletions images/nut-upsd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ NUT_DEBUG_LEVEL | 0 | verbosity of debug messages
NUT_QUIET_INIT_SSL | true | inhibit superfluous startup warning
NUT_QUIET_INIT_UPSNOTIFY | true | inhibit superfluous startup warning
POLLINTERVAL | | Poll Interval for ups.conf
POLLONLY | | Disable USB interrupt reads
PORT | auto | device port (e.g. /dev/ttyUSB0) on host
SDORDER | | UPS shutdown sequence, set to -1 to disable shutdown
SECRETNAME | nut-upsd-password | name of secret to use for API user
Expand Down
3 changes: 3 additions & 0 deletions images/nut-upsd/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ EOF
if [ ! -z "$POLLINTERVAL" ]; then
echo " pollinterval = $POLLINTERVAL" >> /etc/nut/ups.conf
fi
if [ ! -z "$POLLONLY" ]; then
echo " pollonly" >> /etc/nut/ups.conf
fi
if [ ! -z "$VENDORID" ]; then
echo " vendorid = $VENDORID" >> /etc/nut/ups.conf
fi
Expand Down