From 712a3cf204e2d7f8769db873a913ccf9d4ed6adc Mon Sep 17 00:00:00 2001 From: Eirik Oeverby Date: Sat, 14 Mar 2009 12:08:32 +0100 Subject: Bugfix in pfJailctl --- config/jailctl/jailctl-utils.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/jailctl') 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 +?> -- cgit v1.2.3