mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-11-22 15:32:19 +03:00
session close feature added
This commit is contained in:
parent
26e17d3873
commit
4b580f26cb
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ class Util:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def close_session(username):
|
||||||
|
Util.execute('pkill -9 -u {0}'.format(username))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def create_file(full_path):
|
def create_file(full_path):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue