Update server check and version numbers

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

No files matched your search

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