mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-26 22:21:14 +02:00
ssh logs
This commit is contained in:
@@ -691,7 +691,11 @@ def getSSHUserActivity(request):
|
||||
# Find main shell process for history
|
||||
shell_history = []
|
||||
try:
|
||||
shell_home = pwd.getpwnam(user).pw_dir
|
||||
try:
|
||||
website = Websites.objects.get(externalApp=user)
|
||||
shell_home = f'/home/{website.domain}'
|
||||
except Exception:
|
||||
shell_home = pwd.getpwnam(user).pw_dir
|
||||
except Exception:
|
||||
shell_home = f"/home/{user}"
|
||||
history_file = ''
|
||||
|
||||
Reference in New Issue
Block a user