From f1d43036090111a56ab4a720837a37bc2deaf60a Mon Sep 17 00:00:00 2001 From: Trystan Lea Date: Tue, 12 May 2026 17:21:16 +0100 Subject: [PATCH] service runner whitelist version --- postprocess-module/postprocess_model.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/postprocess-module/postprocess_model.php b/postprocess-module/postprocess_model.php index 00911ce..abd8ce7 100644 --- a/postprocess-module/postprocess_model.php +++ b/postprocess-module/postprocess_model.php @@ -338,11 +338,7 @@ public function trigger_service_runner() { // Check if service-runner.service is running if ($this->check_service_runner()) { - global $settings, $linked_modules_dir; - // Ask service-runner to run postprocess script - $update_script = "$linked_modules_dir/postprocess/postprocess.sh"; - $update_logfile = $settings['log']['location'] . "/postprocess.log"; - $this->redis->rpush("service-runner", "$update_script>$update_logfile"); + $this->redis->rpush("service-runner", json_encode(["run" => "postprocess-run", "args" => [], "log" => "postprocess"])); return array('success' => true, 'message' => "Process added to queue"); } else {