mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
add command checking;
This commit is contained in:
@@ -299,6 +299,7 @@ class ProcessUtilities(multi.Thread):
|
||||
try:
|
||||
if os.path.exists('/usr/local/CyberCP/debug'):
|
||||
logging.writeToFile(command)
|
||||
|
||||
if getpass.getuser() == 'root':
|
||||
if os.path.exists(ProcessUtilities.debugPath):
|
||||
logging.writeToFile(command)
|
||||
|
||||
Reference in New Issue
Block a user