add support for passing additional options to tftpd

This commit is contained in:
Julien Nicoulaud 2022-02-08 19:53:56 +01:00
parent 4dcfa2d248
commit 7e4f4d465a
No known key found for this signature in database
GPG Key ID: 9E76BFBEDAB0B521
2 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,7 @@ RUN \
groupmod -g 1000 users && \
useradd -u 911 -U -d /config -s /bin/false nbxyz && \
usermod -G users nbxyz && \
mkdir /app \
mkdir /app \
/config \
/defaults && \
if [ -z ${WEBAPP_VERSION+x} ]; then \
@ -47,10 +47,11 @@ RUN \
npm config set unsafe-perm true && \
npm install --prefix /app
ENV TFTPD_OPTS=''
EXPOSE 3000
COPY root/ /
# default command
CMD ["sh","/start.sh"]

View File

@ -22,7 +22,7 @@ directory=/app
priority = 3
[program:in.tftpd]
command=/usr/sbin/in.tftpd -Lvvv --user nbxyz --secure /config/menus
command=/usr/sbin/in.tftpd -Lvvv --user nbxyz --secure %(ENV_TFTPD_OPTS)s /config/menus
stdout_logfile=/config/tftpd.log
redirect_stderr=true
priority = 4