改名
This commit is contained in:
@@ -48,8 +48,7 @@ class Shutdown extends Component
|
|||||||
{
|
{
|
||||||
clearstatcache(storage());
|
clearstatcache(storage());
|
||||||
$output = shell_exec('[ -f /.dockerenv ] && echo yes || echo no');
|
$output = shell_exec('[ -f /.dockerenv ] && echo yes || echo no');
|
||||||
var_dump($output);
|
if (trim($output) === 'yes') {
|
||||||
if ($output === 'yes') {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -244,7 +244,7 @@ class Snowflake
|
|||||||
public static function isDcoker(): bool
|
public static function isDcoker(): bool
|
||||||
{
|
{
|
||||||
exec('[ -f /.dockerenv ] && echo yes || echo no', $output, $cod);
|
exec('[ -f /.dockerenv ] && echo yes || echo no', $output, $cod);
|
||||||
if ($cod === 0 && $output === 'yes') {
|
if ($cod === 0 && trim($output) === 'yes') {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user