Fix a bug to display correct VNET interface
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
======================
|
======================
|
||||||
Version Description
|
Version Description
|
||||||
|
|
||||||
|
1.1.05......Fix a bug to display correct VNET interface.
|
||||||
1.1.04......Fix a bug that prevents VNET jail creation.
|
1.1.04......Fix a bug that prevents VNET jail creation.
|
||||||
1.1.03......Add patch to improve ZFS activation, contributed by disaster.
|
1.1.03......Add patch to improve ZFS activation, contributed by disaster.
|
||||||
1.1.02......Create required dir for templates link creation.
|
1.1.02......Create required dir for templates link creation.
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ function get_jail_infos() {
|
|||||||
$r['rel'] = "-";
|
$r['rel'] = "-";
|
||||||
endif;
|
endif;
|
||||||
// Display interfaces.
|
// Display interfaces.
|
||||||
$r['nic'] = exec("/usr/bin/grep -w 'interface' {$jail_dir}/{$item}/jail.conf | /usr/bin/awk '{print $3}' | /usr/bin/tr -d ';'");
|
$r['nic'] = exec("/usr/bin/grep -wE 'interface.*=.*;|vnet.interface.*=.*;' {$jail_dir}/{$item}/jail.conf | /usr/bin/awk '{print $3}' | /usr/bin/tr -d ';'");
|
||||||
if (!$r['nic']):
|
if (!$r['nic']):
|
||||||
$r['nic'] = "-";
|
$r['nic'] = "-";
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
Reference in New Issue
Block a user