浏览代码

Update functions.php

FusionPBX 5 年之前
父节点
当前提交
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();
 				}
 			}