It hasn't have to be for the core functionality, just for my own plugin.
I'll have a look at cups, maybe there will be a good example.
Thank you!
It hasn't have to be for the core functionality, just for my own plugin.
I'll have a look at cups, maybe there will be a good example.
Thank you!
So there is no possibility to make it acceptable for a user in a superuser group or anything?
Hi there,
currently i am developing a plugin for OMV.
It works for the administrator but i need to create more than the one hardcoded administrator or at least some superusers which can operate my plugin.
I do not know where to look or what to configure that users in a specific group can operate my plugin.
Could this be done by linux user groups?
Are there any hints for this issue?
Thanks in advance!
Thanks, that helped
Hi there, i've got an issue with crons.
Everytime i try to apply the changes i made, i get this error:
Fehler #0: exception 'OMV\ExecException' with message 'Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; omv-mkconf cron 2>&1' with exit code '1': Traceback (most recent call last): File "/usr/sbin/omv-mkconf", line 81, in <module> sys.exit(main()) File "/usr/sbin/omv-mkconf", line 77, in main rc = execute_script() File "/usr/sbin/omv-mkconf", line 47, in execute_script __args.verbose) File "/usr/lib/python3/dist-packages/openmediavault/log.py", line 64, in error _log(syslog.LOG_ERR, msg, args, **kwargs) File "/usr/lib/python3/dist-packages/openmediavault/log.py", line 34, in _log sys.stderr.write("{}: {}\n".format(tag[priority], msg % args)) TypeError: not all arguments converted during string formatting' in /usr/share/php/openmediavault/system/process.inc:174 Stack trace: #0 /usr/share/openmediavault/engined/module/cron.inc(51): OMV\System\Process->execute() #1 /usr/share/openmediavault/engined/rpc/config.inc(163): OMVModuleCron->applyConfig() #2 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array) #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array) #4 /usr/share/php/openmediavault/rpc/serviceabstract.inc(150): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array) #5 /usr/share/php/openmediavault/rpc/serviceabstract.inc(517): OMV\Rpc\ServiceAbstract->OMV\Rpc\{closure}('/tmp/bgstatusK5...', '/tmp/bgoutputsS...') #6 /usr/share/php/openmediavault/rpc/serviceabstract.inc(151): OMV\Rpc\ServiceAbstract->execBgProc(Object(Closure)) #7 /usr/share/openmediavault/engined/rpc/config.inc(208): OMV\Rpc\ServiceAbstract->callMethodBg('applyChanges', Array, Array) #8 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array) #9 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array) #10 /usr/share/php/openmediavault/rpc/rpc.inc(84): OMV\Rpc\ServiceAbstract->callMethod('applyChangesBg', Array, Array) #11 /usr/sbin/omv-engined(516): OMV\Rpc\Rpc::call('Config', 'applyChangesBg', Array, Array, 1) #12 {main}
Does somebody have a hint?
Thanks in advance!