mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-27 18:43:45 +01:00
Specs: extract clean_kasm_users()
This commit is contained in:
parent
4cb75459ed
commit
3f69b7bd33
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user