We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64c6270 + 2f66253 commit 900a302Copy full SHA for 900a302
.templates/mosquitto/docker-entrypoint.sh
@@ -1,6 +1,8 @@
1
#!/bin/ash
2
set -e
3
4
+PWFILE="/mosquitto/pwfile/pwfile"
5
+
6
# Set permissions
7
user="$(id -u)"
8
if [ "$user" = '0' -a -d "/mosquitto" ]; then
@@ -9,8 +11,13 @@ if [ "$user" = '0' -a -d "/mosquitto" ]; then
9
11
10
12
rsync -arpv --ignore-existing /${IOTSTACK_DEFAULTS_DIR}/ "/mosquitto"
13
14
+ # general ownership assuming mode as set in template
15
chown -Rc mosquitto:mosquitto /mosquitto
16
17
+ # specific requirements for the password file
18
+ chown -c root:root "$PWFILE"
19
+ chmod -c 600 "$PWFILE"
20
21
echo "[IOTstack] end self-repair"
22
23
fi
0 commit comments