Commit f78f7bcc6745f9a7c24b2c3c595afc46870dfcb6

Authored by Jarrett Jordaan
1 parent 8201265b

Story Id:1166880 Server Testing Updates

Committed by: Jarrett Jordaan

Reviewed by: Paul Barrett
setup/wizard/lib/services/unixService.php
@@ -62,7 +62,13 @@ class unixService extends Service { @@ -62,7 +62,13 @@ class unixService extends Service {
62 function setSystemDirs() { 62 function setSystemDirs() {
63 $conf = $this->util->getDataFromSession('configuration'); 63 $conf = $this->util->getDataFromSession('configuration');
64 $this->outputDir = $conf['paths']['logDirectory']['path'].DS; 64 $this->outputDir = $conf['paths']['logDirectory']['path'].DS;
  65 + if($this->outputDir == '') {
  66 + $this->outputDir = SYS_OUT_DIR;
  67 + }
65 $this->varDir = $conf['paths']['varDirectory']['path'].DS; 68 $this->varDir = $conf['paths']['varDirectory']['path'].DS;
  69 + if($this->varDir == '') {
  70 + $this->varDir = SYS_VAR_DIR;
  71 + }
66 } 72 }
67 73
68 /** 74 /**
setup/wizard/lib/services/windowsService.php
@@ -73,7 +73,13 @@ class windowsService extends Service { @@ -73,7 +73,13 @@ class windowsService extends Service {
73 function setSystemDirs() { 73 function setSystemDirs() {
74 $conf = $this->util->getDataFromSession('configuration'); 74 $conf = $this->util->getDataFromSession('configuration');
75 $this->outputDir = $conf['paths']['logDirectory']['path'].DS; 75 $this->outputDir = $conf['paths']['logDirectory']['path'].DS;
  76 + if($this->outputDir == '') {
  77 + $this->outputDir = SYS_OUT_DIR;
  78 + }
76 $this->varDir = $conf['paths']['varDirectory']['path'].DS; 79 $this->varDir = $conf['paths']['varDirectory']['path'].DS;
  80 + if($this->varDir == '') {
  81 + $this->varDir = SYS_VAR_DIR;
  82 + }
77 } 83 }
78 84
79 /** 85 /**