add command checking;

This commit is contained in:
usmannasir
2023-12-22 12:43:30 +05:00
parent 308af12c1c
commit a0be5c3c4a
2 changed files with 5 additions and 4 deletions

View File

@@ -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)