install wireguard copy wireguard config added wireguarg config Update Dockerfile Update Dockerfile a cleanup
10 lines
183 B
Text
Executable file
10 lines
183 B
Text
Executable file
#!/usr/bin/with-contenv bash
|
|
# Bring up WireGuard if not already up
|
|
if ! ip link show dev wg0 > /dev/null 2>&1; then
|
|
wg-quick up wg0
|
|
else
|
|
sleep 60
|
|
fi
|
|
|
|
# Exit after running
|
|
exit 0
|