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!
Procházet zdrojové kódy

Removed unused jail_run_v2

tags/0.92
Stanislaw Adaszewski před 4 roky
rodič
revize
bf79569d00
1 změnil soubory, kde provedl 0 přidání a 9 odebrání
  1. +0
    -9
      jail.py

+ 0
- 9
jail.py Zobrazit soubor

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


Načítá se…
Zrušit
Uložit