mirror of
https://github.com/linuxserver/docker-wireguard
synced 2024-11-10 01:10:30 +00:00
15 lines
155 B
Plaintext
15 lines
155 B
Plaintext
#!/usr/bin/with-contenv bash
|
|
|
|
_term() {
|
|
echo "Caught SIGTERM signal!"
|
|
wg-quick down wg0
|
|
}
|
|
|
|
trap _term SIGTERM
|
|
|
|
wg-quick up wg0
|
|
|
|
sleep infinity &
|
|
|
|
wait
|