Fix the scripts to copy missing freeswitch scripts again.
This commit is contained in:
parent
977cf3fe43
commit
dd78750044
|
|
@ -55,32 +55,35 @@ include "root.php";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//show debug info
|
//copy only missing files
|
||||||
//echo "copy(".$src."/".$file.", ".$dst."/".$file.");<br />\n";
|
if (!file_exists($dst.'/'.$file)) {
|
||||||
|
copy($src.'/'.$file, $dst.'/'.$file);
|
||||||
|
//echo "copy(".$src."/".$file.", ".$dst."/".$file.");<br />\n";
|
||||||
|
}
|
||||||
//check the file type by ext
|
//check the file type by ext
|
||||||
if (substr($file, -3) == "lua") {
|
//if (substr($file, -3) == "lua") {
|
||||||
//set the exception default
|
//set the exception default
|
||||||
$exception = false;
|
//$exception = false;
|
||||||
//set the exceptions
|
//set the exceptions
|
||||||
if ($file == "database_handle.lua") { $exception = true; }
|
//if ($file == "database_handle.lua") { $exception = true; }
|
||||||
//check for exceptions
|
//check for exceptions
|
||||||
if ($exception) {
|
//if ($exception) {
|
||||||
//file does not exist, save a copy in the destination directory
|
// //file does not exist, save a copy in the destination directory
|
||||||
if (!file_exists($dst.'/'.$file)) {
|
// if (!file_exists($dst.'/'.$file)) {
|
||||||
copy($src.'/'.$file, $dst.'/'.$file);
|
// copy($src.'/'.$file, $dst.'/'.$file);
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
else {
|
//else {
|
||||||
//write over the file
|
//write over the file
|
||||||
copy($src.'/'.$file, $dst.'/'.$file);
|
// copy($src.'/'.$file, $dst.'/'.$file);
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
else {
|
//else {
|
||||||
//file does not exist, save a copy in the destination directory
|
//file does not exist, save a copy in the destination directory
|
||||||
if (!file_exists($dst.'/'.$file)) {
|
//if (!file_exists($dst.'/'.$file)) {
|
||||||
copy($src.'/'.$file, $dst.'/'.$file);
|
// copy($src.'/'.$file, $dst.'/'.$file);
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue