SensorsIot / IOTstack

Docker stack for getting started on IOT on the Raspberry PI
GNU General Public License v3.0
1.42k stars 303 forks source link

2023-10-09 Mosquitto entry-point script - old-menu branch - PR 2 of 2 #733

Closed Paraphraser closed 8 months ago

Paraphraser commented 8 months ago

The folder structure for a newly-created or self-repaired persistent store assumes ownership of id 1883 (which is "mosquitto" inside the container) and file/folder modes copied from the iotstack_defaults folder hierarchy.

Investigations during #731 revealed that Mosquitto now wants the password file to be owned by root with a mode of 600.

Although the mode requirement could be accommodated by changing the iotstack_defaults structure, the ownership requirement can't be met that way.

This fix adds the necessary chown and chmod commands to the entry-point script.