fixing debian pkg installs (#2363)
This commit is contained in:
parent
84b2d8ffb0
commit
8bf2348947
|
|
@ -100,8 +100,8 @@ if (!class_exists('scripts')) {
|
||||||
}
|
}
|
||||||
if (file_exists($dst_dir)) {
|
if (file_exists($dst_dir)) {
|
||||||
//get the source directory
|
//get the source directory
|
||||||
if (file_exists('/usr/share/examples/fusionpbx/resources/install/scripts')){
|
if (file_exists('/usr/share/examples/fusionpbx/scripts')){
|
||||||
$src_dir = '/usr/share/examples/fusionpbx/resources/install/scripts';
|
$src_dir = '/usr/share/examples/fusionpbx/scripts';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$src_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/scripts';
|
$src_dir = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/scripts';
|
||||||
|
|
|
||||||
|
|
@ -292,8 +292,8 @@ include "root.php";
|
||||||
$schema->exec();
|
$schema->exec();
|
||||||
|
|
||||||
//get the contents of the sql file
|
//get the contents of the sql file
|
||||||
if (file_exists('/usr/share/examples/fusionpbx/resources/install/sql/sqlite.sql')){
|
if (file_exists('/usr/share/examples/fusionpbx/sql/sqlite.sql')){
|
||||||
$filename = "/usr/share/examples/fusionpbx/resources/install/sql/sqlite.sql";
|
$filename = "/usr/share/examples/fusionpbx/sql/sqlite.sql";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/sqlite.sql';
|
$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/sqlite.sql';
|
||||||
|
|
@ -387,8 +387,8 @@ include "root.php";
|
||||||
$schema->exec();
|
$schema->exec();
|
||||||
|
|
||||||
//get the contents of the sql file
|
//get the contents of the sql file
|
||||||
if (file_exists('/usr/share/examples/fusionpbx/resources/install/sql/pgsql.sql')){
|
if (file_exists('/usr/share/examples/fusionpbx/sql/pgsql.sql')){
|
||||||
$filename = "/usr/share/examples/fusionpbx/resources/install/sql/pgsql.sql";
|
$filename = "/usr/share/examples/fusionpbx/sql/pgsql.sql";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/pgsql.sql';
|
$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/pgsql.sql';
|
||||||
|
|
@ -558,8 +558,8 @@ include "root.php";
|
||||||
|
|
||||||
//add the defaults data into the database
|
//add the defaults data into the database
|
||||||
//get the contents of the sql file
|
//get the contents of the sql file
|
||||||
if (file_exists('/usr/share/examples/fusionpbx/resources/install/sql/mysql.sql')){
|
if (file_exists('/usr/share/examples/fusionpbx/sql/mysql.sql')){
|
||||||
$filename = "/usr/share/examples/fusionpbx/resources/install/sql/mysql.sql";
|
$filename = "/usr/share/examples/fusionpbx/sql/mysql.sql";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/mysql.sql';
|
$filename = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/sql/mysql.sql';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue