Update jlmkr.py

This commit is contained in:
Jip-Hop 2023-03-10 23:18:13 +01:00
parent 68c25b75ec
commit 2f243a7f80
1 changed files with 1 additions and 0 deletions

View File

@ -743,6 +743,7 @@ def remove_jail(jail_name):
print(f"\nTrying to stop {jail_name} if it was running...")
subprocess.run(['machinectl', 'stop', jail_name])
# Need to sleep since deleting immediately after stop causes problems...
# TODO: actually wait until the jail has completely stopped... shutdown may take more than 1s
time.sleep(1)
print(f"Cleaning up: {jail_path}")
shutil.rmtree(jail_path)