1
0
Files
home_assistant/init.sh
Kappeh 3817f1950f
Some checks failed
Deploy / Deploy (push) Failing after 1m48s
Add home_assistant container
2026-02-10 19:07:34 +00:00

17 lines
405 B
Bash

#!/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 home_assistant:home_assistant /config