diff --git a/dmsctl.sh b/dmsctl.sh index bd8a767..026ea5c 100755 --- a/dmsctl.sh +++ b/dmsctl.sh @@ -302,7 +302,7 @@ firstrun() { fi fi - touch $INSTALL_PATH/var/bin/.dmsinit.lock + touch $INSTALL_PATH/var/bin/dmsinit.lock $ZEND_DIR/bin/zendctl.sh restart } @@ -320,7 +320,7 @@ if [ "x$3" != "x" ]; then fi # Are we running for first time -[[ -e $INSTALL_PATH/var/bin/.dmsinit.lock ]] || firstrun +[[ -e $INSTALL_PATH/var/bin/dmsinit.lock ]] || firstrun case $1 in help) help diff --git a/setup/wizard/steps/database.php b/setup/wizard/steps/database.php index d05922f..1d0a18f 100644 --- a/setup/wizard/steps/database.php +++ b/setup/wizard/steps/database.php @@ -776,17 +776,6 @@ class database extends Step } private function writeBinaries() { - $services = $this->util->getDataFromSession('services'); - $binaries = $services['binaries']; - if($binaries) { - foreach ($binaries as $k=>$bin) { - if($k != 1) { - $updateBin = 'UPDATE config_settings c SET c.value = "'.str_replace('\\', '\\\\', $bin).'" where c.group_name = "externalBinary" and c.display_name = "'.$k.'";'; - $this->util->dbUtilities->query($updateBin); - } - } - } - // if Windows, attempt to insert full paths to binaries if (WINDOWS_OS) { $winBinaries = array('php' => array(0 => 'externalBinary', 1 => 'ZendServer\bin\php.exe'), @@ -825,7 +814,21 @@ class database extends Step // if Linux? else { // TODO python binary? - // TODO other binaries? + // Python + $services = $this->util->getDataFromSession('services'); + $binaries = $services['binaries']; + $python = "/usr/bin/python"; + if(file_exists($python)) { + $binaries['python'] = $python; + } + if($binaries) { + foreach ($binaries as $k=>$bin) { + if($k != 1) { + $updateBin = 'UPDATE config_settings c SET c.value = "'.str_replace('\\', '\\\\', $bin).'" where c.group_name = "externalBinary" and c.display_name = "'.$k.'";'; + $this->util->dbUtilities->query($updateBin); + } + } + } } } diff --git a/setup/wizard/templates/complete.tpl b/setup/wizard/templates/complete.tpl index 8dd18cf..c90db95 100644 --- a/setup/wizard/templates/complete.tpl +++ b/setup/wizard/templates/complete.tpl @@ -17,7 +17,7 @@
cd KnowledgeTree_Installation_Folder
+ dmsctl.bat install
dmsctl.bat start
cd /usr/share/knowledgetree-ce