Page Menu
Home
WMGMC Issues
搜索
Configure Global Search
登录
Files
F15838
docker-entrypoint.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
订阅
标记用于日后
授予令牌
Size
586 B
Referenced Files
None
订阅者
None
docker-entrypoint.sh
View Options
#!/bin/sh
backend
=
iptables
nft
list
table
ip
filter
&
>/dev/null
nftables_found
=
$?
iptables
-L
-n
&
>/dev/null
iptables_found
=
$?
if
[
$nftables_found
-lt
$iptables_found
]
;
then
backend
=
nftables
fi
if
[
$nftables_found
-gt
$iptables_found
]
;
then
backend
=
iptables
fi
if
[
$nftables_found
-eq
0
]
&&
[
$nftables_found
-eq
$iptables_found
]
;
then
nftables_lines
=
$(
nft
list
ruleset
|
wc
-l
)
iptables_lines
=
$(
iptables-save
|
wc
-l
)
if
[
$nftables_lines
-gt
$iptables_lines
]
;
then
backend
=
nftables
else
backend
=
iptables
fi
fi
exec
python
-u
/app/main.py
$backend
File Metadata
详情
附加的
Mime Type
text/x-shellscript
Expires
9月 9 Tue, 5:42 AM (3 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5328
默认替代文本
docker-entrypoint.sh (586 B)
Attached To
Mode
rMAILCOW mailcow-tracking
附加的
Detach File
Event Timeline
Log In to Comment