Skip to content

Commit

Permalink
fix permission error for new mosquitto base-image version
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Nov 4, 2024
1 parent 3819b93 commit ef450f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wis2box-broker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#
###############################################################################

FROM eclipse-mosquitto:2.0.15
FROM eclipse-mosquitto:2.0.20

RUN mkdir -p /data/wis2box/mosquitto
RUN ln -s /mosquitto /data/wis2box/mosquitto
Expand Down
6 changes: 6 additions & 0 deletions wis2box-broker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@ for i in `env | grep -Ee "\<WIS2BOX_BROKER_USERNAME_[[:alnum:]]+"`; do
echo "topic readwrite ${!topic}" >> /mosquitto/config/acl.conf
done

# set ownership of mosquitto files
chown -R mosquitto:mosquitto /mosquitto

# set permission of acl.conf to 0700
chmod 0700 /mosquitto/config/acl.conf

/usr/sbin/mosquitto -c /mosquitto/config/mosquitto.conf

0 comments on commit ef450f4

Please sign in to comment.