Skip to content

Commit

Permalink
[FIX] vnet: use the right search pattern to choose the unique epair
Browse files Browse the repository at this point in the history
  • Loading branch information
yaazkal committed Dec 29, 2021
1 parent c8545e8 commit 17e4fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/local/share/bastille/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17e4fa7

Please sign in to comment.