admin: kill go-vod when changing config
Signed-off-by: Varun Patil <varunpatil@ucla.edu>pull/563/head
parent
31a37deda2
commit
cb8ebcb6a8
|
@ -87,8 +87,14 @@ class OtherController extends GenericApiController
|
|||
throw Exceptions::Forbidden('Cannot change settings in readonly mode');
|
||||
}
|
||||
|
||||
// Assign config with type checking
|
||||
Util::setSystemConfig($key, $value);
|
||||
|
||||
// If changing vod settings, kill any running go-vod instances
|
||||
if (0 === strpos($key, 'memories.vod.')) {
|
||||
Util::pkill('go-vod');
|
||||
}
|
||||
|
||||
return new JSONResponse([], Http::STATUS_OK);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue