mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Update install.php
This commit is contained in:
parent
a7486cc20c
commit
b83e0846f9
1 changed files with 4 additions and 0 deletions
|
@ -74,12 +74,14 @@ function runProcess(string $cmd, string $input = null): void
|
||||||
|
|
||||||
// Read and print output in real-time
|
// Read and print output in real-time
|
||||||
while (!feof($pipes[1])) {
|
while (!feof($pipes[1])) {
|
||||||
|
usleep(10000);
|
||||||
echo stream_get_contents($pipes[1], 1);
|
echo stream_get_contents($pipes[1], 1);
|
||||||
flush(); // Flush output buffer for immediate display
|
flush(); // Flush output buffer for immediate display
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read and print error output
|
// Read and print error output
|
||||||
while (!feof($pipes[2])) {
|
while (!feof($pipes[2])) {
|
||||||
|
usleep(3000);
|
||||||
echo stream_get_contents($pipes[2], 1);
|
echo stream_get_contents($pipes[2], 1);
|
||||||
flush();
|
flush();
|
||||||
}
|
}
|
||||||
|
@ -108,10 +110,12 @@ function chmod_r(string $dir, int $dirPermissions, int $filePermissions): void
|
||||||
|
|
||||||
$fullPath = realpath($dir . '/' . $file);
|
$fullPath = realpath($dir . '/' . $file);
|
||||||
if (is_dir($fullPath)) {
|
if (is_dir($fullPath)) {
|
||||||
|
usleep(100000);
|
||||||
out("- Directory: $fullPath");
|
out("- Directory: $fullPath");
|
||||||
chmod($fullPath, $dirPermissions);
|
chmod($fullPath, $dirPermissions);
|
||||||
chmod_r($fullPath, $dirPermissions, $filePermissions);
|
chmod_r($fullPath, $dirPermissions, $filePermissions);
|
||||||
} elseif (is_file($fullPath)) {
|
} elseif (is_file($fullPath)) {
|
||||||
|
usleep(100000);
|
||||||
out("- File: $fullPath");
|
out("- File: $fullPath");
|
||||||
chmod($fullPath, $filePermissions);
|
chmod($fullPath, $filePermissions);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue