Update server check and version numbers

This commit is contained in:
Andras Bacsai
2024-02-26 11:25:38 +01:00
parent b67abe58e8
commit 600c43827a
4 changed files with 6 additions and 3 deletions

View File

@@ -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)) {