From 600c43827ab5db868024a0e0d88a5328c42d2dbd Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 26 Feb 2024 11:25:38 +0100 Subject: [PATCH] Update server check and version numbers --- app/Livewire/Project/Shared/ExecuteContainerCommand.php | 3 +++ config/sentry.php | 2 +- config/version.php | 2 +- versions.json | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Livewire/Project/Shared/ExecuteContainerCommand.php b/app/Livewire/Project/Shared/ExecuteContainerCommand.php index 3687669a9..a33716e72 100644 --- a/app/Livewire/Project/Shared/ExecuteContainerCommand.php +++ b/app/Livewire/Project/Shared/ExecuteContainerCommand.php @@ -107,6 +107,9 @@ class ExecuteContainerCommand extends Component { $this->validate(); try { + if ($this->server->isForceDisabled()) { + throw new \RuntimeException('Server is disabled.'); + } // Wrap command to prevent escaped execution in the host. $cmd = 'sh -c "if [ -f ~/.profile ]; then . ~/.profile; fi; ' . str_replace('"', '\"', $this->command) . '"'; if (!empty($this->workDir)) { diff --git a/config/sentry.php b/config/sentry.php index 40a4c9906..96c7207e0 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ return [ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => '4.0.0-beta.225', + 'release' => '4.0.0-beta.226', // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'), diff --git a/config/version.php b/config/version.php index c3f92910d..b0f6d7453 100644 --- a/config/version.php +++ b/config/version.php @@ -1,3 +1,3 @@