properly quoting variables
This commit is contained in:
@@ -231,12 +231,12 @@ create_jail() {
|
|||||||
if [ ! -z "${bastille_jail_loopback}" ] && [ -z "${bastille_jail_external}" ]; then
|
if [ ! -z "${bastille_jail_loopback}" ] && [ -z "${bastille_jail_external}" ]; then
|
||||||
local bastille_jail_conf_interface=${bastille_jail_interface}
|
local bastille_jail_conf_interface=${bastille_jail_interface}
|
||||||
fi
|
fi
|
||||||
if [ ! -z ${INTERFACE} ]; then
|
if [ -n "${INTERFACE}" ]; then
|
||||||
local bastille_jail_conf_interface=${INTERFACE}
|
local bastille_jail_conf_interface=${INTERFACE}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## generate the jail configuration file
|
## generate the jail configuration file
|
||||||
if [ -n ${VNET_JAIL} ]; then
|
if [ -n "${VNET_JAIL}" ]; then
|
||||||
generate_vnet_jail_conf
|
generate_vnet_jail_conf
|
||||||
else
|
else
|
||||||
generate_jail_conf
|
generate_jail_conf
|
||||||
|
|||||||
Reference in New Issue
Block a user