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