jobList = $jobList; $this->config = $config; } public function getName() { return 'Queue a one-time job to check for user uploaded certificates'; } private function shouldRun() { $versionFromBeforeUpdate = $this->config->getSystemValueString('version', '0.0.0.0'); // was added to 21.0.0.2 return version_compare($versionFromBeforeUpdate, '21.0.0.2', '<'); } public function run(IOutput $output) { if ($this->shouldRun()) { $this->config->setAppValue('files_external', 'user_certificate_scan', 'not-run-yet'); $this->jobList->add(CheckForUserCertificates::class); } } }