aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEirik Oeverby <ltning@anduin.net>2009-03-14 12:08:32 +0100
committerEirik Oeverby <ltning@anduin.net>2009-03-14 12:08:32 +0100
commit712a3cf204e2d7f8769db873a913ccf9d4ed6adc (patch)
tree9b331a64f2e6a9aed843de0bb37f311b0af6c538
parentdb4523f55ad16382edc05fbf21809108809726f1 (diff)
downloadpfsense-packages-712a3cf204e2d7f8769db873a913ccf9d4ed6adc.tar.gz
pfsense-packages-712a3cf204e2d7f8769db873a913ccf9d4ed6adc.tar.bz2
pfsense-packages-712a3cf204e2d7f8769db873a913ccf9d4ed6adc.zip
Bugfix in pfJailctl
-rw-r--r--config/jailctl/jailctl-utils.inc4
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
+?>