mirror of https://github.com/MISP/MISP
fix: [internal] Throw exception if BackgroundJobsTool is not properly configured
parent
8594e61d2c
commit
38ba34d4f6
|
@ -629,6 +629,10 @@ class BackgroundJobsTool
|
|||
];
|
||||
}
|
||||
|
||||
if (!isset($this->settings['supervisor_host'])) {
|
||||
throw new RuntimeException("Required option `supervisor_host` for BackgroundJobsTool is not set.");
|
||||
}
|
||||
|
||||
$host = null;
|
||||
if (substr($this->settings['supervisor_host'], 0, 5) === 'unix:') {
|
||||
if (!defined('CURLOPT_UNIX_SOCKET_PATH')) {
|
||||
|
|
Loading…
Reference in New Issue