digidem / edt-offline

Low-energy device that creates an access-point with the Earth Defender's Toolkit platform running, even without the Internet. It provides applications, documentation, use cases, curated websites, and application bridges.
http://demo.earthdefenderstoolkit.com/
MIT License
12 stars 0 forks source link

ID for Syncthing not being set #72

Open tdruiva opened 3 weeks ago

tdruiva commented 3 weeks ago

Describe the bug When you start a new device, Syncthing container should run a script to replace some variables like #ID_PRINCIPAL by SYNC_ID_PRINCIPAL env value but it is not happening.

To Reproduce Steps to reproduce the behavior:

  1. Burn new SD card with BalenaOS
  2. Put it in a Rasp and connect it to a router
  3. Wait to be online
  4. Check for sync logs

Expected behavior Is expected when you initialize Sync container, its config file should has folders' IDs from where it should sync

Device Type: Raspberry Pi 4

Possible Solution Modify Dockerfile, to copy script inside of /custom-cont-init.d/ instead of /etc/cont-init.d/

- COPY cont-init.d/ /etc/cont-init.d/
+ COPY cont-init.d/ /custom-cont-init.d/

Check LinuxServer documentation

maige-app[bot] commented 3 weeks ago

Suggested Solution:

Modify the Dockerfile to copy the script inside of /custom-cont-init.d/ instead of /etc/cont-init.d/.

- COPY cont-init.d/ /etc/cont-init.d/
+ COPY cont-init.d/ /custom-cont-init.d/

Refer to the LinuxServer documentation for more details.

From Maige. How's my driving?

maige-app[bot] commented 3 weeks ago
Engineer dispatched. See details on the Maige dashboard. Name Status Message Updated (UTC)
Fix Syncthing ID replacement issue 🟡 Pending (inspect) Jul 12, 2024, 12:23 PM