Fix issue with names containing dashes
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
======================
|
======================
|
||||||
Version Description
|
Version Description
|
||||||
|
|
||||||
|
1.0.31......Fix issue with names containing dashes.
|
||||||
1.0.30......Ability to convert thin jail to thick jail.
|
1.0.30......Ability to convert thin jail to thick jail.
|
||||||
1.0.29......Added Chinese (Simplified) translation, thanks to lijinbiao.
|
1.0.29......Added Chinese (Simplified) translation, thanks to lijinbiao.
|
||||||
1.0.28......Improve fstab utility error handling.
|
1.0.28......Improve fstab utility error handling.
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ function get_jail_infos() {
|
|||||||
|
|
||||||
// Set the JID on the running jails.
|
// Set the JID on the running jails.
|
||||||
$item = $r['jailname'];
|
$item = $r['jailname'];
|
||||||
$r['id'] = exec("/usr/sbin/jls | /usr/bin/grep {$item} | /usr/bin/awk '{print $1}'");
|
$r['id'] = exec("/usr/sbin/jls | /usr/bin/awk '/{$item}\ /{print $1}'");
|
||||||
if (!$r['id']):
|
if (!$r['id']):
|
||||||
$r['id'] = "-";
|
$r['id'] = "-";
|
||||||
endif;
|
endif;
|
||||||
|
|||||||
Reference in New Issue
Block a user