mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-03 19:23:42 +01:00
Fix generated interface name in rc.conf for vnet jail
This commit is contained in:
@@ -499,7 +499,7 @@ create_jail() {
|
|||||||
if [ -n "${VNET_JAIL}" ]; then
|
if [ -n "${VNET_JAIL}" ]; then
|
||||||
if [ -n "${bastille_template_vnet}" ]; then
|
if [ -n "${bastille_template_vnet}" ]; then
|
||||||
## rename interface to generic vnet0
|
## rename interface to generic vnet0
|
||||||
uniq_epair=$(grep vnet.interface "${bastille_jailsdir}/${NAME}/jail.conf" | awk '{print $3}' | sed 's/;//')
|
uniq_epair=$(grep vnet.interface "${bastille_jailsdir}/${NAME}/jail.conf" | awk '{print $3}' | sed 's/;//; s/-/_/g')
|
||||||
|
|
||||||
_gateway=''
|
_gateway=''
|
||||||
_gateway6=''
|
_gateway6=''
|
||||||
|
|||||||
Reference in New Issue
Block a user