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]