mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-21 18:36:31 +00:00
Change paths for linux package installs /var/lib/fusionpbx to /var/lib/fusionpbx/db and scripts directory to /var/lib/fusionpbx/scripts if that directory exists.
This commit is contained in:
@@ -140,8 +140,8 @@ require_once "includes/lib_functions.php";
|
||||
case "Linux":
|
||||
//set the default db_path
|
||||
if (strlen($db_path) == 0) {
|
||||
if (file_exists('/var/lib/fusionpbx')) {
|
||||
$db_path = '/var/lib/fusionpbx';
|
||||
if (file_exists('/var/lib/fusionpbx/db')) {
|
||||
$db_path = '/var/lib/fusionpbx/db';
|
||||
}
|
||||
}
|
||||
//set the other default directories
|
||||
@@ -166,6 +166,9 @@ require_once "includes/lib_functions.php";
|
||||
if (file_exists('/usr/share/freeswitch/scripts')) {
|
||||
$switch_scripts_dir = '/usr/share/freeswitch/scripts';
|
||||
}
|
||||
if (file_exists('/var/lib/fusionpbx/scripts')) {
|
||||
$switch_scripts_dir = '/var/lib/fusionpbx/scripts';
|
||||
}
|
||||
if (file_exists('/usr/share/freeswitch/grammar')) {
|
||||
$switch_grammar_dir = '/usr/share/freeswitch/grammar';
|
||||
}
|
||||
@@ -364,7 +367,7 @@ if ($_POST["install_step"] == "3" && count($_POST) > 0 && strlen($_POST["persist
|
||||
$tmp_config .= "/* \$Id\$ */\n";
|
||||
$tmp_config .= "/*\n";
|
||||
$tmp_config .= " config.php\n";
|
||||
$tmp_config .= " Copyright (C) 2008, 20013 Mark J Crane\n";
|
||||
$tmp_config .= " Copyright (C) 2008, 2013 Mark J Crane\n";
|
||||
$tmp_config .= " All rights reserved.\n";
|
||||
$tmp_config .= "\n";
|
||||
$tmp_config .= " Redistribution and use in source and binary forms, with or without\n";
|
||||
|
||||
Reference in New Issue
Block a user