Fix a bug to display correct VNET interface

This commit is contained in:
JRGTH
2021-12-21 21:10:18 -04:00
parent 98afab9ba8
commit 0c708358e6
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -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.
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -1 +1 @@
1.1.04 1.1.05