Merge pull request #219 from linuxserver/capfix-alpine

This commit is contained in:
Adam 2022-12-08 10:27:05 +00:00 committed by GitHub
commit eddf6eb019
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ ip link del dev test 2>/dev/null
if ip link add dev test type wireguard; then
echo "**** It seems the wireguard module is already active. Skipping kernel header install and module compilation. ****"
ip link del dev test
if capsh --print | grep -qv '\!cap_sys_module'; then
if capsh --current | grep "Current:" | grep -q "cap_sys_module"; then
echo "**** As the wireguard module is already active you can remove the SYS_MODULE capability from your container run/compose. ****"
fi
else