[FIX] vnet: use the right search pattern to choose the unique epair
This commit is contained in:
1 parent
c8545e8598
commit
17e4fa78f9
1 file changed
+1
-1
@@ -193,7 +193,7 @@ generate_vnet_jail_conf() {
|
||||
local list_jails_num=$(echo "${jail_list}" | wc -l | awk '{print $1}')
|
||||
local num_range=$((list_jails_num + 1))
|
||||
for _num in $(seq 0 "${num_range}"); do
|
||||
if ! grep -q "e${_num}b" "${bastille_jailsdir}"/*/jail.conf; then
|
||||
if ! grep -q "e[0-9]b_bastille${_num}" "${bastille_jailsdir}"/*/jail.conf; then
|
||||
uniq_epair="bastille${_num}"
|
||||
uniq_epair_bridge="${_num}"
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user