소스 검색

Update functions.php

FusionPBX 6 년 전
부모
커밋
90a52af003
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      resources/functions.php

+ 3 - 3
resources/functions.php

@@ -205,11 +205,11 @@
 	}
 
 	if (!function_exists('recursive_delete')) {
-		if (file_exists('/bin/rm')) {
+		if (file_exists('/usr/bin/find')) {
 			function recursive_delete($directory) {
 				if (isset($directory) && strlen($directory) > 8) {
-					exec ('find '.$directory.' -name "*" | xargs rm -Rf');
-					//exec ('rm -Rf '.$directory.'/*');
+					exec('/usr/bin/find '.$directory.' -name "*" -delete');
+					//exec('rm -Rf '.$directory.'/*');
 					clearstatcache();
 				}
 			}