improve check install status when running in docker

This commit is contained in:
xiaomlove
2025-10-23 16:19:14 +07:00
parent c26bd6f1aa
commit 747d272653
4 changed files with 18 additions and 12 deletions
+3 -1
View File
@@ -49,7 +49,9 @@ class Install
'pcntl_signal', 'pcntl_alarm', 'pcntl_async_signals'
];
protected string $lockFile = 'install.lock';
const INSTALL_LOCK_FILE = 'dont_delete_install.lock';
protected string $lockFile = self::INSTALL_LOCK_FILE;
public function __construct()
{
+5
View File
@@ -176,6 +176,11 @@ final class Nexus
return false;
}
public function isFpmMode(): bool
{
return php_sapi_name() === 'fpm-fcgi';
}
private function generateRequestId(): string
{
$prefix = ($_SERVER['SCRIPT_FILENAME'] ?? '') . implode('', $_SERVER['argv'] ?? []);