new: [CLI] Added restartworkers and update MISP

pull/4411/head
iglocska 2019-04-02 10:18:00 +02:00
parent 084b79e399
commit 3bf3cca970
1 changed files with 10 additions and 0 deletions

View File

@ -34,6 +34,16 @@ class AdminShell extends AppShell
$this->ShadowAttribute->generateCorrelation($jobId);
}
public function updateMISP() {
$status = array('branch' => '2.4');
echo $this->Server->update($status) . PHP_EOL;
}
public function restartWorkers() {
$this->Server->restartWorkers();
echo PHP_EOL . 'Workers restarted.' . PHP_EOL;
}
public function updateGalaxies() {
// The following is 7.x upwards only
//$value = $this->args[0] ?? $this->args[0] ?? 0;