This is weird and buggy and breaches the unpriv./priv. separation of
our api daemons, so root-only for now and possibly removal soon.
note that this had several limitations already anyway, like running
in sync context and thus failing after 30s.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
name => 'execute',
path => 'execute',
method => 'POST',
- permissions => {
- check => ['perm', '/nodes/{node}', [ 'Sys.Audit' ]],
- },
- description => "Execute multiple commands in order.",
+ description => "Execute multiple commands in order, root only.",
proxyto => 'node',
protected => 1, # avoid problems with proxy code
parameters => {