1
0
Files
wireguard/init.sh
Kappeh 54f90751fa
Some checks failed
Deploy / Deploy (push) Failing after 1m2s
Add wireguard container
2026-04-01 22:34:12 +01:00

17 lines
439 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
}
}
# Make sure volumes have correct permissions
run chown wireguard:wireguard /config