Jail_ip and jail_interface local variables were renamed to _ip and _interface
in a previous commit to avoid namespace collisions, unfortunately I missed two of them. This leads to the ip alias being incorrectly removed in some cases when using the stop command. Reported by: Philipp Wuensche <cryx-freebsd@h3q.com>
This commit is contained in:
parent
8b577d2188
commit
4dfbf1f9e3
@ -228,8 +228,8 @@ jail_start()
|
||||
echo ${_jail_id} > /var/run/jail_${_jail}.id
|
||||
else
|
||||
jail_umount_fs
|
||||
if [ -n "${jail_interface}" ]; then
|
||||
ifconfig ${jail_interface} -alias ${jail_ip}
|
||||
if [ -n "${_interface}" ]; then
|
||||
ifconfig ${_interface} -alias ${_ip}
|
||||
fi
|
||||
echo " cannot start jail \"${_jail}\": "
|
||||
tail +2 ${_tmp_jail}
|
||||
|
Loading…
x
Reference in New Issue
Block a user