mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 13:56:01 +01:00
bug fix: joomla install
This commit is contained in:
@@ -897,7 +897,7 @@ class ApplicationInstaller(multi.Thread):
|
|||||||
VALUES (LAST_INSERT_ID(),'8');""" % (prefix, username, password, prefix)
|
VALUES (LAST_INSERT_ID(),'8');""" % (prefix, username, password, prefix)
|
||||||
|
|
||||||
out, err = proc.communicate(
|
out, err = proc.communicate(
|
||||||
file(finalPath + 'installation/sql/mysql/joomlaInstall.sql').read() + "\n" + usercreation)
|
open(finalPath + 'installation/sql/mysql/joomlaInstall.sql', 'rb').read() + ("\n" + usercreation).encode('utf-8'))
|
||||||
|
|
||||||
shutil.rmtree(finalPath + "installation")
|
shutil.rmtree(finalPath + "installation")
|
||||||
|
|
||||||
|
|||||||
@@ -1963,7 +1963,7 @@ class WebsiteManager:
|
|||||||
## Installation
|
## Installation
|
||||||
salt = randomPassword.generate_pass(32)
|
salt = randomPassword.generate_pass(32)
|
||||||
# return salt
|
# return salt
|
||||||
password_hash = hashlib.md5(password + salt).hexdigest()
|
password_hash = hashlib.md5((password + salt).encode('utf-8')).hexdigest()
|
||||||
password = password_hash + ":" + salt
|
password = password_hash + ":" + salt
|
||||||
|
|
||||||
statusFile = open(tempStatusPath, 'w')
|
statusFile = open(tempStatusPath, 'w')
|
||||||
|
|||||||
Reference in New Issue
Block a user