Allow override of HWID using environment variable (#3036)

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
Wolfgang Nagele 2023-12-27 15:14:55 +01:00 committed by GitHub
parent 16c18d0da9
commit 06b4638f6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,6 @@ COPY --from=builder /tmp/firmware/release/meshtasticd_linux_amd64 /home/mesh/
USER mesh
WORKDIR /home/mesh
CMD sh -cx "./meshtasticd_linux_amd64 --hwid '$RANDOM'"
CMD sh -cx "./meshtasticd_linux_amd64 --hwid '${HWID:-$RANDOM}'"
HEALTHCHECK NONE