diff --git a/app/Console/Commands/SetConfigCommand.php b/app/Console/Commands/SetConfigCommand.php index 1e095d01f9..004ef7a6f0 100644 --- a/app/Console/Commands/SetConfigCommand.php +++ b/app/Console/Commands/SetConfigCommand.php @@ -50,7 +50,9 @@ class SetConfigCommand extends LnmsCommand if (preg_match('/^os\.(?[a-z_\-]+)\.(?.*)$/', $setting, $matches)) { $os = $matches['os']; try { - $this->validateOsSetting($os, $matches['setting'], $value); + if (! $force) { + $this->validateOsSetting($os, $matches['setting'], $value); + } } catch (ValidationException $e) { $this->error(trans('commands.config:set.errors.invalid')); $this->line($e->getMessage()); diff --git a/misc/os_schema.json b/misc/os_schema.json index d87fd97ac4..adbfc73493 100644 --- a/misc/os_schema.json +++ b/misc/os_schema.json @@ -391,6 +391,22 @@ "type": "integer", "minimum": 1 }, + "syslog_hook": { + "type": "array", + "items": { + "type": "object", + "properties": { + "regex": { + "type": "string" + }, + "script": { + "type": "string" + } + }, + "required": ["regex", "script"], + "additionalProperties": false + } + }, "ifXmcbc": { "type": "boolean" },