Move the scripts to app/scripts/resources/scripts

This commit is contained in:
markjcrane
2020-01-18 00:30:13 +00:00
parent 1dd99599ac
commit ca5a824bb5
194 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
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.
Contributor(s):
@@ -104,16 +104,16 @@ if (!class_exists('scripts')) {
$source_directory = '/usr/share/examples/fusionpbx/scripts';
}
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)) {
//copy the main scripts
recursive_copy($source_directory,$destination_directory);
recursive_copy($source_directory, $destination_directory);
unset($source_directory);
//copy the 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);
}
unset($app_scripts);

Some files were not shown because too many files have changed in this diff Show More