Skip to content

Commit

Permalink
fix setup ffaspath routine
Browse files Browse the repository at this point in the history
  • Loading branch information
emcodem committed Nov 26, 2024
1 parent 29004c0 commit fe0ee4f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions node_components/common/rest_api_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ class RestApi {
}
}

async change_install_path(new_path){
async change_install_path(new_path,global_conf){
console.log("Resetting REST API Path to: ", new_path);
this.private_init_path = new_path;
console.log("Stopping REST API Service");
await this.stop_rest_api_thread();
console.log("Starting REST API Service");
this.start_rest_api_thread(this.private_init_port,new_path,this);
this.start_rest_api_thread(this.private_init_port,new_path,global_conf,this);
}

sleep(ms) {
Expand Down
2 changes: 1 addition & 1 deletion node_components/views/adminconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ module.exports = function(app, express){
//change install path requires us to push the info to rest_service.
//this needs to be solved in a different way once we split rest_api and webint

restApiController.change_install_path(data["STATIC_FFASTRANS_PATH"]);
restApiController.change_install_path(data["STATIC_FFASTRANS_PATH"],global.config);
}
if (("STATIC_USE_WEB_AUTHENTIFICATION" in data) && !data["STATIC_USE_WEB_AUTHENTIFICATION"].match("true|false")){
res.write("WEB_AUTHENTIFICATION must be \"true\" or \"false\"");
Expand Down
2 changes: 1 addition & 1 deletion webinterface/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@

/* function check installpath */
function checkFFAStransInstallPath(){
if (m_serverconfig.STATIC_FFASTRANS_PATH == "unknown" ){
if (m_serverconfig.STATIC_FFASTRANS_PATH == "unknown" || m_serverconfig.STATIC_FFASTRANS_PATH == ""){
let installpath = prompt("Initial Setup.\nPlease enter Path to FFAStrans, e.g. \n\nC:\\FFAStrans\n\nFor FFAStrans Farm, you need to enter the full UNC Path, e.g.\n\\\\server\\share\\FFAStrans", "C:\\FFAStrans");
m_serverconfig.STATIC_FFASTRANS_PATH = installpath;
console.log("Saving config",m_serverconfig)
Expand Down
2 changes: 1 addition & 1 deletion webinterface/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.0.97
1.4.0.102

0 comments on commit fe0ee4f

Please sign in to comment.