Move the scripts to app/scripts/resources/scripts
This commit is contained in:
parent
1dd99599ac
commit
ca5a824bb5
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2008-2017
|
Portions created by the Initial Developer are Copyright (C) 2008-2020
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
@ -104,16 +104,16 @@ if (!class_exists('scripts')) {
|
||||||
$source_directory = '/usr/share/examples/fusionpbx/scripts';
|
$source_directory = '/usr/share/examples/fusionpbx/scripts';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$source_directory = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/resources/install/scripts';
|
$source_directory = $_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/resources/scripts';
|
||||||
}
|
}
|
||||||
if (is_readable($source_directory)) {
|
if (is_readable($source_directory)) {
|
||||||
//copy the main scripts
|
//copy the main scripts
|
||||||
recursive_copy($source_directory,$destination_directory);
|
recursive_copy($source_directory, $destination_directory);
|
||||||
unset($source_directory);
|
unset($source_directory);
|
||||||
|
|
||||||
//copy the app/*/resource/install/scripts
|
//copy the app/*/resource/install/scripts
|
||||||
$app_scripts = glob($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'app/*/resource/install/scripts');
|
$app_scripts = glob($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'app/*/resource/install/scripts');
|
||||||
foreach ($app_scripts as $app_script){
|
foreach ($app_scripts as $app_script) {
|
||||||
recursive_copy($app_script, $destination_directory);
|
recursive_copy($app_script, $destination_directory);
|
||||||
}
|
}
|
||||||
unset($app_scripts);
|
unset($app_scripts);
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue