Skip to content

Commit

Permalink
Merge pull request #478 from yaazkal/fix_create_vnet
Browse files Browse the repository at this point in the history
Fix create vnet jails
  • Loading branch information
cedwards authored Dec 29, 2021
2 parents 00d9e03 + 17e4fa7 commit a56cb2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usr/local/share/bastille/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ generate_vnet_jail_conf() {
local jail_list=$(bastille list jails)
if [ -n "${jail_list}" ]; then
local list_jails_num=$(echo "${jail_list}" | wc -l | awk '{print $1}')
local num_range=$(expr "${list_jails_num}" + 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}"
uniq_epair_bridge="${_num}"
break
fi
done
Expand Down

0 comments on commit a56cb2d

Please sign in to comment.