Merge pull request #667 from yangfl/master
Quote paths in nft scripts to prevent word splitting.
This commit is contained in:
commit
fb5c328a5e
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
. $(dirname "$0")/miniupnpd_functions.sh
|
||||
. "$(dirname "$0")/miniupnpd_functions.sh"
|
||||
|
||||
# Prerouting
|
||||
$NFT delete chain inet $NAT_TABLE $PREROUTING_CHAIN
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
. $(dirname "$0")/miniupnpd_functions.sh
|
||||
. "$(dirname "$0")/miniupnpd_functions.sh"
|
||||
|
||||
# Prerouting
|
||||
$NFT list chain inet $NAT_TABLE $PREROUTING_CHAIN
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
. $(dirname "$0")/miniupnpd_functions.sh
|
||||
. "$(dirname "$0")/miniupnpd_functions.sh"
|
||||
|
||||
$NFT flush chain inet $TABLE $CHAIN
|
||||
$NFT flush chain inet $NAT_TABLE $PREROUTING_CHAIN
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# 'add' doesn't raise an error if the object already exists. 'create' does.
|
||||
#
|
||||
|
||||
. $(dirname "$0")/miniupnpd_functions.sh
|
||||
. "$(dirname "$0")/miniupnpd_functions.sh"
|
||||
|
||||
$NFT --check list table inet $TABLE > /dev/null 2>&1
|
||||
if [ $? -eq "0" ]
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# Do not disturb other existing structures in nftables, e.g. those created by firewalld
|
||||
#
|
||||
|
||||
. $(dirname "$0")/miniupnpd_functions.sh
|
||||
. "$(dirname "$0")/miniupnpd_functions.sh"
|
||||
|
||||
$NFT --check list table inet $TABLE > /dev/null 2>&1
|
||||
if [ $? -eq "0" ]
|
||||
|
|
Loading…
Reference in New Issue