1
0

Add wireguard container
All checks were successful
Deploy / Deploy (push) Successful in 18s

This commit is contained in:
2026-04-01 22:34:12 +01:00
parent 557741e682
commit 2299598183
3 changed files with 100 additions and 0 deletions

16
init.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/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