mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
bug fix: alias domains, php fetch and domain with sudo
This commit is contained in:
@@ -245,8 +245,9 @@ class ProcessUtilities(multi.Thread):
|
||||
command = '%s-u %s %s' % (ProcessUtilities.token, user, command)
|
||||
else:
|
||||
command = '%s-u %s -d %s %s' % (ProcessUtilities.token, user, dir, command)
|
||||
command = command.replace('sudo', '')
|
||||
|
||||
if command.startswith('sudo'):
|
||||
command = command.replace('sudo', '', 1) # Replace 'sudo' with an empty string, only once
|
||||
|
||||
if os.path.exists(ProcessUtilities.debugPath):
|
||||
if command.find('cat') == -1:
|
||||
|
||||
Reference in New Issue
Block a user