mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-19 14:47:29 +00:00
Merge pull request #19 from IYism/master
bugfix:connect.py log_online.html
This commit is contained in:
commit
6168ab270f
@ -91,7 +91,7 @@ def log_record(username, host):
|
|||||||
dept_name = User.objects.get(username=username).dept.name
|
dept_name = User.objects.get(username=username).dept.name
|
||||||
pid = os.getpid()
|
pid = os.getpid()
|
||||||
pts = os.popen("ps axu | awk '$2==%s{ print $7 }'" % pid).read().strip()
|
pts = os.popen("ps axu | awk '$2==%s{ print $7 }'" % pid).read().strip()
|
||||||
ip_list = os.popen("who | awk '$2==%s{ print $5 }'" % pts).read().strip('()\n')
|
ip_list = os.popen("who | awk '$2==\"%s\"{ print $5 }'" % pts).read().strip('()\n')
|
||||||
|
|
||||||
if not os.path.isdir(today_connect_log_dir):
|
if not os.path.isdir(today_connect_log_dir):
|
||||||
try:
|
try:
|
||||||
|
@ -223,7 +223,9 @@
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: g_url,
|
url: g_url,
|
||||||
success: window.open("/jlog/log_list/online/", "_self")
|
success: function(){
|
||||||
|
document.location.reload();
|
||||||
|
}
|
||||||
// error: window.open(g_url, "_self")
|
// error: window.open(g_url, "_self")
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user