mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
utf-encoding
This commit is contained in:
@@ -895,6 +895,7 @@ fi
|
|||||||
if [[ $DEV == "ON" ]] ; then
|
if [[ $DEV == "ON" ]] ; then
|
||||||
#install dev branch
|
#install dev branch
|
||||||
#wget https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt
|
#wget https://raw.githubusercontent.com/usmannasir/cyberpanel/$BRANCH_NAME/requirments.txt
|
||||||
|
pip3.6 install virtualenv
|
||||||
cd /usr/local/
|
cd /usr/local/
|
||||||
virtualenv -p /usr/bin/python3 CyberPanel
|
virtualenv -p /usr/bin/python3 CyberPanel
|
||||||
source /usr/local/CyberPanel/bin/activate
|
source /usr/local/CyberPanel/bin/activate
|
||||||
|
|||||||
@@ -187,13 +187,13 @@ class ProcessUtilities(multi.Thread):
|
|||||||
sock = ret[0]
|
sock = ret[0]
|
||||||
|
|
||||||
if user == None:
|
if user == None:
|
||||||
#logging.writeToFile(ProcessUtilities.token + command)
|
logging.writeToFile(ProcessUtilities.token + command)
|
||||||
sock.sendall(ProcessUtilities.token + command)
|
sock.sendall((ProcessUtilities.token + command).encode('utf-8'))
|
||||||
else:
|
else:
|
||||||
command = '%s-u %s %s' % (ProcessUtilities.token, user, command)
|
command = '%s-u %s %s' % (ProcessUtilities.token, user, command)
|
||||||
#logging.writeToFile(ProcessUtilities.token + command)
|
logging.writeToFile(ProcessUtilities.token + command)
|
||||||
command = command.replace('sudo', '')
|
command = command.replace('sudo', '')
|
||||||
sock.sendall(command)
|
sock.sendall(command.encode('utf-8'))
|
||||||
|
|
||||||
data = ""
|
data = ""
|
||||||
|
|
||||||
@@ -211,6 +211,8 @@ class ProcessUtilities(multi.Thread):
|
|||||||
# cmd = 'deluser %s cyberpanel' % (user)
|
# cmd = 'deluser %s cyberpanel' % (user)
|
||||||
# ProcessUtilities.executioner(cmd)
|
# ProcessUtilities.executioner(cmd)
|
||||||
|
|
||||||
|
logging.writeToFile(data)
|
||||||
|
|
||||||
return data
|
return data
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
logging.writeToFile(str(msg) + " [sendCommand]")
|
logging.writeToFile(str(msg) + " [sendCommand]")
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ pygpgme==0.3
|
|||||||
PyNaCl==1.3.0
|
PyNaCl==1.3.0
|
||||||
pyOpenSSL==17.5.0
|
pyOpenSSL==17.5.0
|
||||||
pyRFC3339==1.1
|
pyRFC3339==1.1
|
||||||
pyserial==2.6
|
|
||||||
python-dateutil==2.7.5
|
python-dateutil==2.7.5
|
||||||
pytz==2018.4
|
pytz==2018.4
|
||||||
pyudev==0.15
|
pyudev==0.15
|
||||||
|
|||||||
Reference in New Issue
Block a user