Skip to content

Commit 3bb1f51

Browse files
committed
Merge branch 'mosquitto-selfRepair-logging'
2 parents 4b921f4 + 0500615 commit 3bb1f51

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.templates/mosquitto/docker-entrypoint.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ set -e
55
user="$(id -u)"
66
if [ "$user" = '0' -a -d "/mosquitto" ]; then
77

8-
rsync -arp --ignore-existing /${IOTSTACK_DEFAULTS_DIR}/ "/mosquitto"
8+
echo "[IOTstack] begin self-repair"
99

10-
chown -R mosquitto:mosquitto /mosquitto
10+
rsync -arpv --ignore-existing /${IOTSTACK_DEFAULTS_DIR}/ "/mosquitto"
11+
12+
chown -Rc mosquitto:mosquitto /mosquitto
13+
14+
echo "[IOTstack] end self-repair"
1115

1216
fi
1317

0 commit comments

Comments
 (0)