Merge branch 'master' into stable24

old_stable24
Varun Patil 2022-11-10 22:19:54 -08:00
commit 0ae7650d56
2 changed files with 36 additions and 0 deletions

View File

@ -55,4 +55,12 @@ Memories is a *batteries-included* photo management solution for Nextcloud with
<route>memories.Page.main</route>
</navigation>
</navigations>
<repair-steps>
<post-migration>
<step>OCA\Memories\Migration\Repair</step>
</post-migration>
<install>
<step>OCA\Memories\Migration\Repair</step>
</install>
</repair-steps>
</info>

View File

@ -0,0 +1,28 @@
<?php
declare(strict_types=1);
namespace OCA\Memories\Migration;
use OCP\IConfig;
use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
class Repair implements IRepairStep {
protected IConfig $config;
public function __construct(IConfig $config) {
$this->config = $config;
}
public function getName(): string {
return 'Repair steps for Memories';
}
public function run(IOutput $output): void {
// kill any instances of go-transcode and go-vod
shell_exec('pkill go-transcode');
shell_exec('pkill go-vod');
}
}