docker sites

This commit is contained in:
usmannasir
2023-12-18 12:46:32 +05:00
parent d2cc487877
commit d6604509cf
10 changed files with 577 additions and 77 deletions

View File

@@ -297,6 +297,8 @@ class ProcessUtilities(multi.Thread):
@staticmethod
def outputExecutioner(command, user=None, shell = None, dir = None, retRequired = None):
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)