File: docker-entrypoint.sh

package info (click to toggle)
mosquitto 2.0.22-4
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 9,572 kB
  • sloc: ansic: 51,107; python: 15,095; xml: 7,187; makefile: 1,819; cpp: 1,541; sh: 320; perl: 70
file content (10 lines) | stat: -rwxr-xr-x 166 bytes parent folder | download | duplicates (24)
1
2
3
4
5
6
7
8
9
10
#!/bin/ash
set -e

# Set permissions
user="$(id -u)"
if [ "$user" = '0' ]; then
	[ -d "/mosquitto" ] && chown -R mosquitto:mosquitto /mosquitto || true
fi

exec "$@"