Added default run_as user test to the run_as example.

pull/7/head
Ferry Boender 9 years ago
parent 03f655b6e6
commit c23368154e
  1. 13
      examples/run_as/run_as.json

@ -2,14 +2,23 @@
"title": "Run as", "title": "Run as",
"forms": [ "forms": [
{ {
"name": "run_as", "name": "run_as_man",
"title": "Run as...", "title": "Run as user 'man' (if we're root)",
"description": "", "description": "",
"submit_title": "Run", "submit_title": "Run",
"run_as": "man", "run_as": "man",
"script": "/tmp/test/job_run_as.py", "script": "/tmp/test/job_run_as.py",
"fields": [ "fields": [
] ]
},
{
"name": "run_as_nobody",
"title": "Run as default user ('nobody if we're root)",
"description": "",
"submit_title": "Run",
"script": "/tmp/test/job_run_as.py",
"fields": [
]
} }
] ]
} }

Loading…
Cancel
Save