Commit d8d1f13d7238e4986e63a4cf71d69a9d79f8db82

Authored by Conrad Vermeulen
1 parent 05f90026

KTS-2579

"scripts not resolving paths correctly with stack installer"
Update. Adding changing to relative path so external user/scripts don't have to do this

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7574 c91229c3-7414-0410-bfa2-8a42b809f60b
search2/indexing/bin/cronMigration.php
... ... @@ -42,6 +42,7 @@
42 42 * This script is to be called periodically to migrate current indexes to Lucene.
43 43 */
44 44  
  45 +chdir(dirname(__FILE__));
45 46 require_once(realpath('../../../config/dmsDefaults.php'));
46 47 require_once('indexing/indexerCore.inc.php');
47 48  
... ...
search2/indexing/bin/diagnose.php
... ... @@ -42,6 +42,7 @@
42 42 * This script provides diagnosis for the various text extractors.
43 43 */
44 44  
  45 +chdir(dirname(__FILE__));
45 46 require_once(realpath('../../../config/dmsDefaults.php'));
46 47 require_once('indexing/indexerCore.inc.php');
47 48  
... ...
search2/indexing/bin/optimise.php
... ... @@ -42,6 +42,7 @@
42 42 * This script optimises the lucene index.
43 43 */
44 44  
  45 +chdir(dirname(__FILE__));
45 46 require_once(realpath('../../../config/dmsDefaults.php'));
46 47 require_once('indexing/indexerCore.inc.php');
47 48  
... ...
search2/indexing/bin/recreateIndex.php
... ... @@ -46,6 +46,7 @@
46 46 */
47 47  
48 48 session_start();
  49 +chdir(dirname(__FILE__));
49 50 require_once(realpath('../../../config/dmsDefaults.php'));
50 51  
51 52 print _kt("Recreate Lucene index") . "...\n";
... ...
search2/indexing/bin/registerTypes.php
... ... @@ -48,6 +48,7 @@
48 48 */
49 49  
50 50 session_start();
  51 +chdir(dirname(__FILE__));
51 52 require_once(realpath('../../../config/dmsDefaults.php'));
52 53  
53 54 print _kt("Registering Extractor mapping to Mime types") . "...\n";
... ...
search2/indexing/bin/shutdown.php
... ... @@ -44,6 +44,7 @@
44 44 */
45 45  
46 46 session_start();
  47 +chdir(dirname(__FILE__));
47 48 require_once(realpath('../../../config/dmsDefaults.php'));
48 49  
49 50 print _kt("Shutdown the Document Indexer") . "...\n";
... ...