api: add unshare back

This commit is contained in:
Thomas Hobson 2021-02-22 21:57:03 +13:00
parent 00bb5be55b
commit 0ebdcadf12
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class Job {
async safe_call(file, args){
return await new Promise((resolve, reject) => {
const proc_call = ['bash',file, ...args]
const proc_call = ['unshare','-n','-r','bash',file, ...args].slice(!config.enable_unshare*3)
var stdout = '';
var stderr = '';
const proc = cp.spawn(proc_call[0], proc_call.splice(1) ,{