Specs: extract clean_kasm_users()

This commit is contained in:
Dmitry Maksyoma 2021-09-21 22:13:34 +12:00
parent 4cb75459ed
commit 3f69b7bd33

View File

@ -12,6 +12,14 @@ running_xvnc = False
def clean_env():
clean_kasm_users()
home_dir = os.environ['HOME']
vnc_dir = os.path.join(home_dir, ".vnc")
Path(vnc_dir).rmtree(ignore_errors=True)
def clean_kasm_users():
home_dir = os.environ['HOME']
password_file = os.path.join(home_dir, ".kasmpasswd")
Path(password_file).remove_p()