corrected references to scripts
This commit is contained in:
parent
b10e984d7d
commit
6d7ddec597
|
|
@ -46,8 +46,8 @@ include "root.php";
|
||||||
$this->config_lua = "/etc/fusionpbx/config.lua";
|
$this->config_lua = "/etc/fusionpbx/config.lua";
|
||||||
}elseif (is_dir("/usr/local/etc/fusionpbx")){
|
}elseif (is_dir("/usr/local/etc/fusionpbx")){
|
||||||
$this->config_lua = "/usr/local/etc/fusionpbx/config.lua";
|
$this->config_lua = "/usr/local/etc/fusionpbx/config.lua";
|
||||||
}elseif(strlen($this->global_settings->script_dir) > 0) {
|
}elseif(strlen($this->global_settings->switch_script_dir()) > 0) {
|
||||||
$this->config_lua = $this->global_settings->script_dir."/resources/config.lua";
|
$this->config_lua = $this->global_settings->switch_script_dir()."/resources/config.lua";
|
||||||
}else{
|
}else{
|
||||||
throw new Exception("Could not work out where to put the config.lua");
|
throw new Exception("Could not work out where to put the config.lua");
|
||||||
}
|
}
|
||||||
|
|
@ -193,7 +193,6 @@ include "root.php";
|
||||||
function upgrade() {
|
function upgrade() {
|
||||||
$this->copy_scripts();
|
$this->copy_scripts();
|
||||||
$this->create_config_lua();
|
$this->create_config_lua();
|
||||||
$this->restart_switch();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function copy_conf() {
|
protected function copy_conf() {
|
||||||
|
|
@ -335,7 +334,7 @@ include "root.php";
|
||||||
$tmp .= normalize_path_to_os(" voicemail_dir = [[".$this->global_settings->switch_voicemail_vdir()."]];\n");
|
$tmp .= normalize_path_to_os(" voicemail_dir = [[".$this->global_settings->switch_voicemail_vdir()."]];\n");
|
||||||
}
|
}
|
||||||
if (strlen($this->global_settings->switch_script_dir()) > 0) {
|
if (strlen($this->global_settings->switch_script_dir()) > 0) {
|
||||||
$tmp .= normalize_path_to_os(" script_dir = [[".$this->global_settings->switch_script_dir()."]];\n");
|
$tmp .= normalize_path_to_os(" scripts_dir = [[".$this->global_settings->switch_script_dir()."]];\n");
|
||||||
}
|
}
|
||||||
$tmp .= normalize_path_to_os(" php_dir = [[".PHP_BINDIR."]];\n");
|
$tmp .= normalize_path_to_os(" php_dir = [[".PHP_BINDIR."]];\n");
|
||||||
if (substr(strtoupper(PHP_OS), 0, 3) == "WIN") {
|
if (substr(strtoupper(PHP_OS), 0, 3) == "WIN") {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue