From 661a0f6027869828f3c49441890071e46beaa2ef Mon Sep 17 00:00:00 2001 From: Valentin Conrad <nivadis@users.noreply.github.com> Date: Mon, 18 Nov 2024 15:35:58 +0100 Subject: [PATCH] Update Launcher.php use absolute path Signed-off-by: Valentin Conrad <nivadis@users.noreply.github.com> --- lib/BackgroundJobs/Launcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BackgroundJobs/Launcher.php b/lib/BackgroundJobs/Launcher.php index 508a77e..9ea715b 100644 --- a/lib/BackgroundJobs/Launcher.php +++ b/lib/BackgroundJobs/Launcher.php @@ -44,7 +44,7 @@ protected function run($argument): void { // with wrapping sh around the command, we leave any redirects intact, // but ensure that the script is not blocking Nextcloud's execution - $wrapper = 'sh -c ' . escapeshellarg($command) . ' >/dev/null &'; + $wrapper = '/bin/sh -c ' . escapeshellarg($command) . ' >/dev/null &'; $this->logger->info( 'executing {script}', ['app' => Application::APPID, 'script' => $wrapper]