Add double quotes to prevent globbing/word splitting, general code consistency improvements
This commit is contained in:
@@ -79,7 +79,7 @@ for _jail in ${JAILS}; do
|
||||
|
||||
## start the container
|
||||
echo -e "${COLOR_GREEN}[${_jail}]:${COLOR_RESET}"
|
||||
jail -f "${bastille_jailsdir}/${_jail}/jail.conf" -c ${_jail}
|
||||
jail -f "${bastille_jailsdir}/${_jail}/jail.conf" -c "${_jail}"
|
||||
|
||||
## add rctl limits
|
||||
if [ -s "${bastille_jailsdir}/${_jail}/rctl.conf" ]; then
|
||||
@@ -90,7 +90,7 @@ for _jail in ${JAILS}; do
|
||||
|
||||
## add ip4.addr to firewall table:jails
|
||||
if [ ! -z "${bastille_jail_loopback}" ]; then
|
||||
pfctl -q -t jails -T add $(jls -j ${_jail} ip4.addr)
|
||||
pfctl -q -t jails -T add "$(jls -j "${_jail}" ip4.addr)"
|
||||
fi
|
||||
fi
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user