IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
浏览代码

Removed unused jail_run_v2

tags/0.92
父节点
当前提交
bf79569d00
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. +0
    -9
      jail.py

+ 0
- 9
jail.py 查看文件

@@ -82,15 +82,6 @@ def jail_create(path, command, env, mounts, hostname=None):
return name
def jail_run_v2(path, command, env, mounts):
name = os.path.split(path)[-1]
command = gen_env_command(command, env)
jail_create(path, None, None, mounts)
subprocess.check_output([ 'jail', '-c', name ])
subprocess.run([ 'jexec', name, '/bin/sh', '-c', command ])
subprocess.check_output([ 'jail', '-r', name ])
def get_jid(path):
data = json.loads(subprocess.check_output(['jls', '--libxo=json']))
lst = data['jail-information']['jail']


正在加载...
取消
保存