2022-11-11 06:18:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace OCA\Memories\Migration;
|
|
|
|
|
|
|
|
use OCP\IConfig;
|
|
|
|
use OCP\Migration\IOutput;
|
|
|
|
use OCP\Migration\IRepairStep;
|
|
|
|
|
2022-11-11 06:22:06 +00:00
|
|
|
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
|
2023-01-04 20:32:36 +00:00
|
|
|
\OCA\Memories\Util::pkill('go-transcode');
|
|
|
|
\OCA\Memories\Util::pkill('go-vod');
|
2022-11-11 06:22:06 +00:00
|
|
|
}
|
|
|
|
}
|