diff --git a/HttpServer/Shutdown.php b/HttpServer/Shutdown.php index 87376d8d..968c556d 100644 --- a/HttpServer/Shutdown.php +++ b/HttpServer/Shutdown.php @@ -48,8 +48,7 @@ class Shutdown extends Component { clearstatcache(storage()); $output = shell_exec('[ -f /.dockerenv ] && echo yes || echo no'); - var_dump($output); - if ($output === 'yes') { + if (trim($output) === 'yes') { return; } diff --git a/System/Snowflake.php b/System/Snowflake.php index d5e31706..e5f0c29d 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -244,7 +244,7 @@ class Snowflake public static function isDcoker(): bool { exec('[ -f /.dockerenv ] && echo yes || echo no', $output, $cod); - if ($cod === 0 && $output === 'yes') { + if ($cod === 0 && trim($output) === 'yes') { return true; } return false;