I have added a pull request https://github.com/OpenMediaVa…mediavault-scripts/pull/5 which has my attempt to add the capability mentioned above.
I have tested it on my instance of OpenMediaVault, which was a learning experience in itself.
For others wanting to add new variables into the json config files, you have to run a monit restart omv-engined before attempting to use the UI with the new fields. Otherwise you get something like this:
Code
The property 'logretentiontype' does not exist in the model 'conf.service.scripts'.
OMV\AssertException: The property 'logretentiontype' does not exist in the model 'conf.service.scripts'. in /usr/share/php/openmediavault/config/configobject.inc:71
Stack trace:
#0 /usr/share/php/openmediavault/config/configobject.inc(204): OMV\Config\ConfigObject->assertExists()
#1 /usr/share/php/openmediavault/config/configobject.inc(289): OMV\Config\ConfigObject->set()
#2 /usr/share/php/openmediavault/config/configobject.inc(251): OMV\Config\ConfigObject->setFlatAssoc()
#3 /usr/share/php/openmediavault/config/database.inc(109): OMV\Config\ConfigObject->setAssoc()
#4 /usr/share/openmediavault/engined/rpc/scripts.inc(125): OMV\Config\Database->get()
#5 [internal function]: OMVRpcServiceScripts->get()
#6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array()
#7 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()
#8 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call()
#9 {main}
Display More
And that error is thrown even though the tool to validate the omv database worked omv-showkey logretentiontype.
Other things to take into account.
After updating the yaml that generates the front end, you have to run the command(s) as documented here in the OpenMediaVault documentation.