Skip to content

Commit 1b63f86

Browse files
authored
Merge pull request gcgarner#127 from SensorsIot/wireguard-fix
Fix wireguard causing permission denied errors
2 parents 6ca1b03 + faf0d79 commit 1b63f86

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
WG_CONF_TEMPLATE_PATH=./.templates/wireguard/wg0.conf
2+
WG_CONF_DEST_PATH=./services/wireguard/config
3+
4+
if [[ ! -f $WG_CONF_TEMPLATE_PATH ]]; then
5+
echo "[Wireguard] Warning: $WG_CONF_TEMPLATE_PATH does not exist."
6+
else
7+
[ -d $WG_CONF_DEST_PATH ] || mkdir -p $WG_CONF_DEST_PATH
8+
cp -r $WG_CONF_TEMPLATE_PATH $WG_CONF_DEST_PATH
9+
fi

services/wireguard/service.yml renamed to .templates/wireguard/service.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
- PEERDNS=auto #optional
1616
- INTERNAL_SUBNET=100.64.0.0/24 #optional
1717
volumes:
18-
- ./volumes/wireguard/config:/config
18+
- ./services/wireguard/config:/config
1919
- /lib/modules:/lib/modules
2020
ports:
2121
- 51820:51820/udp

.templates/wireguard/wg0.conf

Whitespace-only changes.

volumes/wireguard/wg0.conf

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)