From b83e0846f9c79755446454d4e9f8565e95cbd5fa Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 8 Aug 2024 00:25:45 +0700 Subject: [PATCH] Update install.php --- install.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.php b/install.php index 1e1a1dd0c..a70411b4b 100644 --- a/install.php +++ b/install.php @@ -74,12 +74,14 @@ function runProcess(string $cmd, string $input = null): void // Read and print output in real-time while (!feof($pipes[1])) { + usleep(10000); echo stream_get_contents($pipes[1], 1); flush(); // Flush output buffer for immediate display } // Read and print error output while (!feof($pipes[2])) { + usleep(3000); echo stream_get_contents($pipes[2], 1); flush(); } @@ -108,10 +110,12 @@ function chmod_r(string $dir, int $dirPermissions, int $filePermissions): void $fullPath = realpath($dir . '/' . $file); if (is_dir($fullPath)) { + usleep(100000); out("- Directory: $fullPath"); chmod($fullPath, $dirPermissions); chmod_r($fullPath, $dirPermissions, $filePermissions); } elseif (is_file($fullPath)) { + usleep(100000); out("- File: $fullPath"); chmod($fullPath, $filePermissions); } else {