Skip to content

Commit

Permalink
update wg
Browse files Browse the repository at this point in the history
  • Loading branch information
abasitt committed Jan 13, 2025
1 parent efa949c commit 5835f56
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions kubernetes/router/apps/default/wireguard/app/helm-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@ configMaps:
data:
entrypoint.sh: |
#!/bin/sh
# Load the WireGuard configuration from the secret
cp /tmp/wg-config/wg0.conf /etc/wireguard/wg0.conf
# Check if wg0 interface exists and shutdown if it does
if ip link show wg0 > /dev/null 2>&1; then
wg-quick down wg0
fi
# Start WireGuard
wg-quick up wg0
Expand Down

0 comments on commit 5835f56

Please sign in to comment.