Check NET_ADMIN flag

This commit is contained in:
Kroese 2023-04-27 19:39:31 +02:00 committed by GitHub
parent 34ec37a00e
commit 7a3712da13

View File

@ -45,7 +45,7 @@ configureDHCP() {
echo -n "ERROR: Capability NET_ADMIN has not been set. Please add the " echo -n "ERROR: Capability NET_ADMIN has not been set. Please add the "
echo "following docker setting to your container: --cap-add NET_ADMIN" && exit 16 echo "following docker setting to your container: --cap-add NET_ADMIN" && exit 16
fi fi
ip link set "${VM_NET_TAP}" up ip link set "${VM_NET_TAP}" up
ip a flush "${VM_NET_DEV}" ip a flush "${VM_NET_DEV}"