mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 07:16:15 +01:00
bug fix: website creation
This commit is contained in:
@@ -190,6 +190,8 @@ class ProcessUtilities(multi.Thread):
|
||||
sock = ret[0]
|
||||
|
||||
if user == None:
|
||||
if command.find('sudo') == -1:
|
||||
command = 'sudo %s' % (command)
|
||||
if os.path.exists(ProcessUtilities.debugPath):
|
||||
logging.writeToFile(ProcessUtilities.token + command)
|
||||
sock.sendall((ProcessUtilities.token + command).encode('utf-8'))
|
||||
|
||||
Reference in New Issue
Block a user