feat: add debian-based docker image (#7414)

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
Signed-off-by: si458 <simonsmith5521@gmail.com>
Co-authored-by: Daan Selen <dselen@systemec.nl>
Co-authored-by: Simon Smith <simonsmith5521@gmail.com>
Co-authored-by: TheDevRyan <175502913+The-Dev-Ryan@users.noreply.github.com>
This commit is contained in:
DaanSelen
2025-11-20 13:28:59 +01:00
committed by GitHub
parent 53f108fe7b
commit a8c3c8f977
10 changed files with 546 additions and 156 deletions

View File

@@ -14,12 +14,22 @@ trap graceful_shutdown SIGTERM
# Make the start more cleared when restarted.
echo "-------------------------------------------------------------"
date
echo "Config file: $CONFIG_FILE"
if [ -n "$CONFIG_FILE" ]; then
echo "Config file: $CONFIG_FILE"
else
exit 1
fi
# Failsafe to create a new config if the expected config is not there.
if [ -f "${CONFIG_FILE}" ]; then
echo "Pre-existing config found, not recreating..."
else
if [ ! -d $(dirname "$CONFIG_FILE") ]; then
echo "Creating meshcentral-data directory..."
mkdir -p /opt/meshcentral/meshcentral-data
fi
echo "Placing template into the relevant directory: $(dirname $CONFIG_FILE)"
cp /opt/meshcentral/config.json.template "${CONFIG_FILE}"
fi
@@ -260,7 +270,7 @@ if [[ ${DYNAMIC_CONFIG,,} =~ ^(true|yes)$ ]]; then
cat "$CONFIG_FILE"
else
echo "Leaving config as-is."
echo "Leaving config as-is. Dynamic Configuration is off."
fi
# Actually start MeshCentral.