diff --git a/script/docker/config.yaml b/script/docker/config.yaml index 5780b8b..5966b41 100644 --- a/script/docker/config.yaml +++ b/script/docker/config.yaml @@ -1,9 +1,4 @@ -### Many device configs have been moved to /etc/meshtasticd/available.d -### To activate, simply copy or link the appropriate file into /etc/meshtasticd/config.d - -### Define your devices here using Broadcom pin numbering -### Uncomment the block that corresponds to your hardware -### Including the "Module:" line! +### Template config.yaml --- Lora: GPIO: @@ -26,4 +21,4 @@ General: MaxMessageQueue: 100 ConfigDirectory: /etc/meshtasticd/config.d/ # MACAddress: AA:BB:CC:DD:EE:FF -# MACAddressSource: eth0 + MACAddressSource: eth0 diff --git a/script/docker/entrypoint.sh b/script/docker/entrypoint.sh index ede70e3..2ccf8f0 100644 --- a/script/docker/entrypoint.sh +++ b/script/docker/entrypoint.sh @@ -1,4 +1,9 @@ #!/bin/bash +# if no config.ini exists, copy the default one +if [ ! -f /app/config.ini ]; then + cp /app/script/docker/config.ini /app/config.ini +fi + # Run the bot as appuser (if you want to drop privileges) exec python /app/mesh_bot.py