An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Fix scheduled tasks being executed using host environment variables
Mauro E. Bendercc870ca30247
diff --git a/app/Jobs/ScheduledTaskJob.php b/app/Jobs/ScheduledTaskJob.phpindex 4a38a005b6..a389dceec4 100644--- a/app/Jobs/ScheduledTaskJob.php+++ b/app/Jobs/ScheduledTaskJob.php@@ -89,7 +89,7 @@ class ScheduledTaskJob implements ShouldQueueforeach ($this->containers as $containerName) {if (count($this->containers) == 1 || str_starts_with($containerName, $this->task->container . '-' . $this->resource->uuid)) {- $cmd = 'sh -c "' . str_replace('"', '\"', $this->task->command) . '"';+ $cmd = "sh -c '" . str_replace("'", "'\''", $this->task->command) . "'";$exec = "docker exec {$containerName} {$cmd}";$this->task_output = instant_remote_process([$exec], $this->server, true);$this->task_log->update([