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']


読み込み中…
キャンセル
保存