Skip to content

Commit eddf6eb

Browse files
authored
Merge pull request #219 from linuxserver/capfix-alpine
2 parents 8d50b4f + 0770384 commit eddf6eb

File tree

1 file changed

+1
-1
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-wireguard-module

1 file changed

+1
-1
lines changed

root/etc/s6-overlay/s6-rc.d/init-wireguard-module/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ip link del dev test 2>/dev/null
88
if ip link add dev test type wireguard; then
99
echo "**** It seems the wireguard module is already active. Skipping kernel header install and module compilation. ****"
1010
ip link del dev test
11-
if capsh --print | grep -qv '\!cap_sys_module'; then
11+
if capsh --current | grep "Current:" | grep -q "cap_sys_module"; then
1212
echo "**** As the wireguard module is already active you can remove the SYS_MODULE capability from your container run/compose. ****"
1313
fi
1414
else

0 commit comments

Comments
 (0)