Add repair steps
parent
782a1143da
commit
b14a01962f
|
@ -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>
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue