1
0
Files
mosquitto/init.sh
Kappeh 9c58c928a1
All checks were successful
Deploy / Deploy (push) Successful in 13s
Add mosquitto container
2026-02-11 02:02:25 +00:00

17 lines
393 B
Bash
Executable File

#!/usr/bin/env sh
# Define a helper function that runs a command
# If the command fails, the script prints an error message
# and exits immediately.
run() {
# "$@" expands to all arguments passed to this function
# and preserves proper word splitting and quoting.
"$@" || {
echo "Error: command failed: $*" >&2
exit 1
}
}
run chown mosquitto:mosquitto /data