bug fix: website creation

This commit is contained in:
Usman Nasir
2020-03-06 11:08:50 +05:00
parent 5b263d6853
commit 1f1863f82f
2 changed files with 33 additions and 9 deletions

View File

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