mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-27 21:04:19 +00:00
Merge pull request #924 from balena-io/only-modprobe-ip6tables-if-needed
Only modprobe ip6_tables if it's necessary
This commit is contained in:
commit
0f943dba1b
4
entry.sh
4
entry.sh
@ -52,6 +52,8 @@ if [ ! -d /lib/modules ]; then
|
||||
ln -s /mnt/root/lib/modules /lib/modules
|
||||
fi
|
||||
# Now load the ip6_tables kernel module, so we can do filtering on ipv6 addresses
|
||||
modprobe ip6_tables
|
||||
if [ -z "$(cat /proc/config.gz | gunzip | grep CONFIG_IP6_NF_IPTABLES=y || true)" ]; then
|
||||
modprobe ip6_tables
|
||||
fi
|
||||
|
||||
exec node /usr/src/app/dist/app.js
|
||||
|
Loading…
x
Reference in New Issue
Block a user