Commit 890b3b793bcb3c9e24d6f484fdc2e9dd59a430f0

Authored by Jarrett Jordaan
1 parent e0c010c3

KTS-4480: Autoload Paths Fixed

Committed by: Jarrett Jordaan

Reviewed by: Megan Watson
setup/wizard/steps/complete.php
... ... @@ -96,6 +96,7 @@ class complete extends Step {
96 96 foreach ($paths as $path)
97 97 {
98 98 $output = '';
  99 + $path['path'] = $class = strtolower(substr($path['path'],0,1)).substr($path['path'],1); // Damn you windows
99 100 $result = $this->util->checkPermission($path['path']);
100 101 $output = sprintf($pathhtml, $result['class'], $path['path'],
101 102 (($result['class'] == 'tick') ? 'class="green"' : 'class="error"' ),
... ...
setup/wizard/steps/configuration.php
... ... @@ -450,7 +450,7 @@ class configuration extends Step
450 450 }
451 451 $dirs = $this->getFromConfigPath(); // Store contents
452 452 }
453   - $varDirectory = $fileSystemRoot . DS . 'var';
  453 +
454 454 foreach ($dirs as $key => $dir){
455 455 $path = (isset($_POST[$dir['setting']])) ? $_POST[$dir['setting']] : $dir['path'];
456 456  
... ... @@ -460,6 +460,7 @@ class configuration extends Step
460 460 if(WINDOWS_OS)
461 461 $path = preg_replace('/\//', '\\',$path);
462 462 $dirs[$key]['path'] = $path;
  463 + $path = $class = strtolower(substr($path,0,1)).substr($path,1); // Damn you windows
463 464 if(isset($dir['file']))
464 465 $class = $this->util->checkPermission($path, $dir['create'], true);
465 466 else
... ...
setup/wizard/steps/services.php
... ... @@ -219,7 +219,7 @@ class services extends Step
219 219 $srv = new $className();
220 220 $srv->load();
221 221 $status = $this->serviceInstalled($srv);
222   - if($status != 'STARTED') {
  222 + if($status != 'STARTED' || $status != 'STOPPED') {
223 223 if(!WINDOWS_OS) { $binary = $this->$class->getBinary(); } // Get binary, if it exists
224 224 $passed = $this->$class->binaryChecks(); // Run Binary Pre Checks
225 225 if ($passed) { // Install Service
... ...