diff options
-rw-r--r-- | config/jailctl/jailctl-utils.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/jailctl/jailctl-utils.inc b/config/jailctl/jailctl-utils.inc index df16750c..36c50d23 100644 --- a/config/jailctl/jailctl-utils.inc +++ b/config/jailctl/jailctl-utils.inc @@ -25,7 +25,7 @@ function jailctl_initialize_jail($jail, $jstatus, $jconfig) { $cmd.="echo '".$jail['jip']." ".$jail['jname']." ".$jstatus['jhostname'][0]."' >> ".$jstatus['jpath']."/etc/hosts \n"; $cmd.="echo 'hostname=\"".$jail['jname']."\"' > ".$jstatus['jpath']."/etc/rc.conf \n"; - if(is_array($jconfig['row']) { + if(is_array($jconfig['row'])) { foreach($jconfig['row'] as $_row) { $cmd.="echo '".$_row['rcconfline']."' >> ".$jstatus['jpath']."/etc/rc.conf \n"; #$cmd.="echo '".str_replace(' ', "\n", $jconfig['jrcconf'])."' >> ".$jstatus['jpath']."/etc/rc.conf \n"; @@ -269,4 +269,4 @@ function jailctl_jailstatus($config, $jail) { } -?>
\ No newline at end of file +?> |