mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
distro for static method and password
This commit is contained in:
@@ -2938,14 +2938,14 @@ milter_default_action = accept
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def setupVirtualEnv():
|
def setupVirtualEnv(distro):
|
||||||
try:
|
try:
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
while (1):
|
while (1):
|
||||||
if self.distro == centos:
|
if distro == centos:
|
||||||
command = "yum install -y libattr-devel xz-devel gpgme-devel mariadb-devel curl-devel"
|
command = "yum install -y libattr-devel xz-devel gpgme-devel mariadb-devel curl-devel"
|
||||||
else:
|
else:
|
||||||
command = 'apt-get -y install libattr1 libattr1-dev liblzma-dev libgpgme-dev libmariadbclient-dev libcurl4-openssl-dev'
|
command = 'apt-get -y install libattr1 libattr1-dev liblzma-dev libgpgme-dev libmariadbclient-dev libcurl4-openssl-dev'
|
||||||
@@ -3256,7 +3256,7 @@ def main():
|
|||||||
checks.configureOpenDKIM()
|
checks.configureOpenDKIM()
|
||||||
|
|
||||||
checks.modSecPreReqs()
|
checks.modSecPreReqs()
|
||||||
checks.setupVirtualEnv()
|
checks.setupVirtualEnv(distro)
|
||||||
checks.setupPHPAndComposer()
|
checks.setupPHPAndComposer()
|
||||||
|
|
||||||
if args.postfix != None:
|
if args.postfix != None:
|
||||||
|
|||||||
@@ -1268,10 +1268,10 @@ def Main(cwd, mysql, distro):
|
|||||||
|
|
||||||
installer.setup_mariadb_repo()
|
installer.setup_mariadb_repo()
|
||||||
installer.installMySQL(mysql)
|
installer.installMySQL(mysql)
|
||||||
if distro == centos:
|
#if distro == centos:
|
||||||
installer.changeMYSQLRootPassword()
|
installer.changeMYSQLRootPassword()
|
||||||
if distro == centos and mysql == 'Two':
|
#if distro == centos and mysql == 'Two':
|
||||||
installer.changeMYSQLRootPasswordCyberPanel(mysql)
|
installer.changeMYSQLRootPasswordCyberPanel(mysql)
|
||||||
installer.startMariaDB()
|
installer.startMariaDB()
|
||||||
if distro == ubuntu:
|
if distro == ubuntu:
|
||||||
installer.fixMariaDB()
|
installer.fixMariaDB()
|
||||||
|
|||||||
Reference in New Issue
Block a user