Skip to content

Commit 832fb98

Browse files
fix: /etc/wireguard file permissions on fedora (#584)
Signed-off-by: Patryk Rostkowski <[email protected]>
1 parent d547d13 commit 832fb98

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wireguard-install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ PostDown = ip6tables -t nat -D POSTROUTING -o ${SERVER_PUB_NIC} -j MASQUERADE" >
286286
echo "net.ipv4.ip_forward = 1
287287
net.ipv6.conf.all.forwarding = 1" >/etc/sysctl.d/wg.conf
288288
289+
if [[ ${OS} == 'fedora' ]]; then
290+
chmod -v 700 /etc/wireguard
291+
chmod -v 600 /etc/wireguard/*
292+
fi
293+
289294
if [[ ${OS} == 'alpine' ]]; then
290295
sysctl -p /etc/sysctl.d/wg.conf
291296
rc-update add sysctl

0 commit comments

Comments
 (0)