This commit is contained in:
2021-04-19 14:52:53 +08:00
parent 31fdb9ec7b
commit 2095c0d579
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -47,9 +47,8 @@ class Shutdown extends Component
public function shutdown(): void
{
clearstatcache(storage());
$output = shell_exec('ls -alh /.dockerenv');
var_dump($output);
if (!empty($output)) {
$output = shell_exec('[ -f /.dockerenv ] && echo yes || echo no');
if ($output === 'yes') {
return;
}