Commit bca47f9178f0de7ffc44fa10a8be8a45d5050b55
1 parent
83f0dcfa
Story ID:1731380 :Fixed batch file for Windows shortcuts
Committed by: Jarrett Jordaan Reviewed by: Martin Kirsten
Showing
7 changed files
with
19 additions
and
25 deletions
dmsctl.bat
| @@ -4,7 +4,7 @@ rem KnowledgeTree Control Script | @@ -4,7 +4,7 @@ rem KnowledgeTree Control Script | ||
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | rem ============= SET ENVIRONMENT VARIABLES ============== | 6 | rem ============= SET ENVIRONMENT VARIABLES ============== |
| 7 | -set INSTALL_PATH=%CD% | 7 | +set INSTALL_PATH=%~dp0 |
| 8 | cd .. | 8 | cd .. |
| 9 | cd .. | 9 | cd .. |
| 10 | set ZEND_PATH=%CD% | 10 | set ZEND_PATH=%CD% |
setup/migrate/steps/migrateServices.php
| @@ -214,11 +214,9 @@ class migrateServices extends Step | @@ -214,11 +214,9 @@ class migrateServices extends Step | ||
| 214 | * | 214 | * |
| 215 | */ | 215 | */ |
| 216 | private function uninstallServices() { | 216 | private function uninstallServices() { |
| 217 | - $this->conf = $this->getDataFromSession("installation"); // Get installation directory | ||
| 218 | - if($this->conf['location'] != '') { | ||
| 219 | - $func = OS."Stop";// Try the dmsctl | ||
| 220 | - $this->$func(); | ||
| 221 | - } | 217 | + $func = OS."Stop"; |
| 218 | + $this->$func(); | ||
| 219 | + | ||
| 222 | $this->shutdown(); | 220 | $this->shutdown(); |
| 223 | } | 221 | } |
| 224 | 222 | ||
| @@ -240,11 +238,11 @@ class migrateServices extends Step | @@ -240,11 +238,11 @@ class migrateServices extends Step | ||
| 240 | * | 238 | * |
| 241 | */ | 239 | */ |
| 242 | private function windowsStop() { | 240 | private function windowsStop() { |
| 243 | - $cmd = "sc delete KTLucene"; | 241 | + $cmd = "sc stop KTLucene; sc delete KTLucene"; |
| 244 | $this->util->pexec($cmd); | 242 | $this->util->pexec($cmd); |
| 245 | - $cmd = "sc delete KTScheduler"; | 243 | + $cmd = "sc stop KTScheduler; sc delete KTScheduler"; |
| 246 | $this->util->pexec($cmd); | 244 | $this->util->pexec($cmd); |
| 247 | - $cmd = "sc delete KTOpenoffice"; | 245 | + $cmd = "sc stop KTOpenoffice; sc delete KTOpenoffice"; |
| 248 | $this->util->pexec($cmd); | 246 | $this->util->pexec($cmd); |
| 249 | } | 247 | } |
| 250 | 248 |
setup/migrate/templates/complete.tpl
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | <?php | 5 | <?php |
| 6 | if($errors || $warnings){ | 6 | if($errors || $warnings){ |
| 7 | echo '<div>' | 7 | echo '<div>' |
| 8 | - . '<a href="http://wiki.knowledgetree.com/Web_Based_Migrater#Post_Migrate" target="_blank">' | 8 | + . '<a href="http://wiki.knowledgetree.com/Web_Based_Migrater#Complete" target="_blank">' |
| 9 | . 'Click Here for help on overcoming post migrate issues</a></div><br/>'; | 9 | . 'Click Here for help on overcoming post migrate issues</a></div><br/>'; |
| 10 | } | 10 | } |
| 11 | ?> | 11 | ?> |
| @@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
| 16 | <span class='<?php echo $sql['class']; ?>'> </span><?php echo $sql['msg']; ?> | 16 | <span class='<?php echo $sql['class']; ?>'> </span><?php echo $sql['msg']; ?> |
| 17 | <br /><br /> | 17 | <br /><br /> |
| 18 | <h3>Start new MySQL service</h3> | 18 | <h3>Start new MySQL service</h3> |
| 19 | - In order to complete the upgrade process please start the Zend Server MySQL service and then click <b>Next</b> to continue (<a href="http://wiki.knowledgetree.com/Web_Based_Migrater#Deactivate_Services" target="_blank">Click here for help</a>). | 19 | + In order to complete the upgrade process please start the Zend Server MySQL service and then click <b>Next</b> to continue (<a href="http://wiki.knowledgetree.com/Web_Based_Migrater#Complete" target="_blank">Click here for help</a>). |
| 20 | <br /><br /> | 20 | <br /><br /> |
| 21 | <?php if(!empty($errors)) { ?> | 21 | <?php if(!empty($errors)) { ?> |
| 22 | <!-- <span class='<?php //echo $ktmysql['class']; ?>'> </span>--> | 22 | <!-- <span class='<?php //echo $ktmysql['class']; ?>'> </span>--> |
setup/migrate/templates/database.tpl
| @@ -5,9 +5,6 @@ | @@ -5,9 +5,6 @@ | ||
| 5 | This step configures the connection to the database server and migrates the database. | 5 | This step configures the connection to the database server and migrates the database. |
| 6 | </div> | 6 | </div> |
| 7 | <div id="step_content_<?php echo $step_name; ?>" class="step"> | 7 | <div id="step_content_<?php echo $step_name; ?>" class="step"> |
| 8 | - <?php | ||
| 9 | - //print_r($errors); | ||
| 10 | - ?> | ||
| 11 | <?php if(empty($errors)) { ?> | 8 | <?php if(empty($errors)) { ?> |
| 12 | <p class="description">The Setup Wizard will now export your existing database in preparation for the migration to the new KnowledgeTree Stack.</p><br /> | 9 | <p class="description">The Setup Wizard will now export your existing database in preparation for the migration to the new KnowledgeTree Stack.</p><br /> |
| 13 | <span class="error">Please ensure that your database is backed up before proceeding. If you need assistance with backing up see the <a class="description_click" target="_blank" href="http://wiki.knowledgetree.com/Backing_up_and_restoring_KnowledgeTree">'Backing up and restoring KnowledgeTree'</a> wiki entry. | 10 | <span class="error">Please ensure that your database is backed up before proceeding. If you need assistance with backing up see the <a class="description_click" target="_blank" href="http://wiki.knowledgetree.com/Backing_up_and_restoring_KnowledgeTree">'Backing up and restoring KnowledgeTree'</a> wiki entry. |
setup/wizard/lib/services/windowsOpenOffice.php
| @@ -130,7 +130,7 @@ class windowsOpenOffice extends windowsService { | @@ -130,7 +130,7 @@ class windowsOpenOffice extends windowsService { | ||
| 130 | * @param none | 130 | * @param none |
| 131 | * @return string | 131 | * @return string |
| 132 | */ | 132 | */ |
| 133 | - public $name = "KTOpenOffice"; | 133 | + public $name = "KTOpenoffice"; |
| 134 | 134 | ||
| 135 | public $hrname = "KnowledgeTree OpenOffice.org Service. (KTOpenOffice)"; | 135 | public $hrname = "KnowledgeTree OpenOffice.org Service. (KTOpenOffice)"; |
| 136 | 136 |
setup/wizard/lib/services/windowsScheduler.php
| @@ -234,15 +234,15 @@ class windowsScheduler extends windowsService { | @@ -234,15 +234,15 @@ class windowsScheduler extends windowsService { | ||
| 234 | if($state == '') { | 234 | if($state == '') { |
| 235 | $this->writeTaskRunner(); | 235 | $this->writeTaskRunner(); |
| 236 | //if (function_exists('win32_create_service')) { // TODO what if it does not exist? check how the dmsctl.bat does this | 236 | //if (function_exists('win32_create_service')) { // TODO what if it does not exist? check how the dmsctl.bat does this |
| 237 | - if(DEBUG) { | ||
| 238 | - echo '<pre>'; | ||
| 239 | - print_r(array('service' => $this->name, 'display' => $this->name, 'path' => $this->getSchedulerScriptPath())); | ||
| 240 | - echo '</pre>'; | ||
| 241 | - echo '<pre>'; | ||
| 242 | - print_r(file_get_contents($this->getSchedulerScriptPath())); | ||
| 243 | - echo '</pre>'; | ||
| 244 | - return ; | ||
| 245 | - } | 237 | +// if(DEBUG) { |
| 238 | +// echo '<pre>'; | ||
| 239 | +// print_r(array('service' => $this->name, 'display' => $this->name, 'path' => $this->getSchedulerScriptPath())); | ||
| 240 | +// echo '</pre>'; | ||
| 241 | +// echo '<pre>'; | ||
| 242 | +// print_r(file_get_contents($this->getSchedulerScriptPath())); | ||
| 243 | +// echo '</pre>'; | ||
| 244 | +// return ; | ||
| 245 | +// } | ||
| 246 | /* | 246 | /* |
| 247 | $response = win32_create_service(array( | 247 | $response = win32_create_service(array( |
| 248 | 'service' => $this->name, | 248 | 'service' => $this->name, |
setup/wizard/templates/license.tpl
| @@ -4,7 +4,6 @@ | @@ -4,7 +4,6 @@ | ||
| 4 | foreach($errors as $k=>$e) { | 4 | foreach($errors as $k=>$e) { |
| 5 | echo "<span class='error'>".$e."</span>"; | 5 | echo "<span class='error'>".$e."</span>"; |
| 6 | } | 6 | } |
| 7 | - //print_r($errors); | ||
| 8 | }?> | 7 | }?> |
| 9 | <p class="description_1"> | 8 | <p class="description_1"> |
| 10 | Please read and accept the license agreement below before continuing with the setup. | 9 | Please read and accept the license agreement below before continuing with the setup. |