No os.system
This commit is contained in:
parent
ecb656974d
commit
845b1b404c
2
jlmkr.py
2
jlmkr.py
|
@ -674,7 +674,7 @@ def list_jails():
|
||||||
print(f"{jail}")
|
print(f"{jail}")
|
||||||
|
|
||||||
print("\nCurrently running:\n")
|
print("\nCurrently running:\n")
|
||||||
os.system(f"machinectl list")
|
subprocess.run(['machinectl', 'list'])
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
if os.stat(__file__).st_uid != 0:
|
if os.stat(__file__).st_uid != 0:
|
||||||
|
|
Loading…
Reference in New Issue