add run args to docker

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

Simon Smith committed Sep 24, 2023 at 15:23 UTC 4c6696c0f77de3eb1ff7604316c0b215a4ca3541
2 files changed +3 -2
docker/Dockerfile
+1
@@ -69,6 +69,7 @@ ENV IFRAME="false"
69 ENV SESSION_KEY=""
70 ENV REVERSE_PROXY="false"
71 ENV REVERSE_PROXY_TLS_PORT=""
72 +ENV ARGS=""
73
74 RUN if ! [ -z "$INCLUDE_MONGODBTOOLS" ] && [ "$INCLUDE_MONGODBTOOLS" != "yes" ] && [ "$INCLUDE_MONGODBTOOLS" != "YES" ] \
75 && [ "$INCLUDE_MONGODBTOOLS" != "true" ] && [ "$INCLUDE_MONGODBTOOLS" != "TRUE" ]; then \
docker/startup.sh
+2 -2
@@ -1,7 +1,7 @@
1 #!/bin/bash
2
3 if [ -f "meshcentral-data/${CONFIG_FILE}" ]; then
4 - node meshcentral/meshcentral --configfile "${CONFIG_FILE}"
4 + node meshcentral/meshcentral --configfile "${CONFIG_FILE}" ${ARGS}
5 else
6 cp config.json.template meshcentral-data/"${CONFIG_FILE}"
7 if [ -n "$USE_MONGODB" ] && [ "$USE_MONGODB" == "true" ]; then
@@ -30,5 +30,5 @@ else
30 node meshcentral/meshcentral --configfile "${CONFIG_FILE}"
31 exit
32 fi
33 - node meshcentral/meshcentral --configfile "${CONFIG_FILE}" --cert "$HOSTNAME"
33 + node meshcentral/meshcentral --configfile "${CONFIG_FILE}" --cert "$HOSTNAME" ${ARGS}
34 fi