@@ -304,10 +304,6 @@ def setup_account_cyberpanel(self):
304304 except BaseException as msg :
305305 logging .InstallLog .writeToFile ("[ERROR] setup_account_cyberpanel. " + str (msg ))
306306
307- def yum_update (self ):
308- command = 'yum update -y'
309- preFlightsChecks .call (command , self .distro , command , command , 1 , 0 , os .EX_OSERR )
310-
311307 def installCyberPanelRepo (self ):
312308 self .stdOut ("Install Cyberpanel repo" )
313309
@@ -333,60 +329,6 @@ def installCyberPanelRepo(self):
333329 command = 'rpm -Uvh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el8.noarch.rpm'
334330 preFlightsChecks .call (command , self .distro , command , command , 1 , 1 , os .EX_OSERR )
335331
336- def enableEPELRepo (self ):
337- command = 'yum -y install epel-release'
338- preFlightsChecks .call (command , self .distro , command , command , 1 , 1 , os .EX_OSERR )
339-
340- def install_pip (self ):
341- self .stdOut ("Install pip" )
342- if self .distro == ubuntu :
343- command = "apt-get -y install python-pip"
344- preFlightsChecks .call (command , self .distro , command , command , 1 , 1 , os .EX_OSERR )
345- elif self .distro == centos :
346- command = "yum -y install python-pip"
347- preFlightsChecks .call (command , self .distro , command , command , 1 , 1 , os .EX_OSERR )
348-
349-
350- def install_python_dev (self ):
351- self .stdOut ("Install python development environment" )
352-
353- if self .distro == centos :
354- command = "yum -y install python-devel"
355- preFlightsChecks .call (command , self .distro , command , command , 1 , 1 , os .EX_OSERR )
356- elif self .distro == ubuntu :
357- command = "apt-get -y install python-dev"
358- preFlightsChecks .call (command , self .distro , command , command , 1 , 1 , os .EX_OSERR )
359-
360-
361-
362- def install_gcc (self ):
363- self .stdOut ("Install gcc" )
364-
365- if self .distro == centos :
366- command = "yum -y install gcc"
367- else :
368- command = "apt-get -y install gcc"
369-
370- preFlightsChecks .call (command , self .distro , command , command , 1 , 1 , os .EX_OSERR )
371-
372- def install_python_setup_tools (self ):
373- command = "yum -y install python-setuptools"
374- preFlightsChecks .call (command , self .distro , command , command , 1 , 1 , os .EX_OSERR )
375-
376- def install_python_mysql_library (self ):
377- self .stdOut ("Install MySQL python library" )
378-
379- if self .distro == centos :
380- command = "yum install mariadb-devel gcc python36u-devel -y"
381- else :
382- command = "apt-get -y install libmysqlclient-dev"
383-
384- preFlightsChecks .call (command , self .distro , command , command , 1 , 1 , os .EX_OSERR )
385-
386- if self .distro == ubuntu :
387- command = "pip install MySQL-python"
388- preFlightsChecks .call (command , self .distro , command , command , 1 , 1 , os .EX_OSERR )
389-
390332 def fix_selinux_issue (self ):
391333 try :
392334 cmd = []
@@ -415,24 +357,11 @@ def install_psmisc(self):
415357
416358 preFlightsChecks .call (command , self .distro , command , command , 1 , 0 , os .EX_OSERR )
417359
418- def installGit (self ):
419- if os .path .exists ("/etc/lsb-release" ):
420- command = 'apt -y install git'
421- preFlightsChecks .call (command , self .distro , command , command , 1 , 1 , os .EX_OSERR )
422- else :
423- command = 'yum -y install http://repo.iotti.biz/CentOS/7/noarch/lux-release-7-1.noarch.rpm'
424- preFlightsChecks .call (command , self .distro , command , command , 1 , 0 , os .EX_OSERR )
425-
426- command = 'yum install git -y'
427- preFlightsChecks .call (command , self .distro , command , command , 1 , 1 , os .EX_OSERR )
428-
429360 def download_install_CyberPanel (self , mysqlPassword , mysql ):
430361 ##
431362
432363 os .chdir (self .path )
433364
434- self .installGit ()
435-
436365 os .chdir ('/usr/local' )
437366
438367 command = "git clone https://github.com/usmannasir/cyberpanel"
@@ -2236,9 +2165,6 @@ def installRedis(self):
22362165 command = 'systemctl enable redis'
22372166 preFlightsChecks .call (command , self .distro , command , command , 1 , 0 , os .EX_OSERR )
22382167
2239-
2240-
2241-
22422168def main ():
22432169 parser = argparse .ArgumentParser (description = 'CyberPanel Installer' )
22442170 parser .add_argument ('publicip' , help = 'Please enter public IP for your VPS or dedicated server.' )
@@ -2307,10 +2233,6 @@ def main():
23072233 checks .checkPythonVersion ()
23082234 checks .setup_account_cyberpanel ()
23092235 checks .installCyberPanelRepo ()
2310- #checks.install_gcc()
2311- if distro == centos :
2312- checks .install_python_setup_tools ()
2313- #checks.install_python_mysql_library()
23142236
23152237 import installCyberPanel
23162238
@@ -2348,7 +2270,6 @@ def main():
23482270 checks .setup_cron ()
23492271 checks .installRestic ()
23502272 checks .installAcme ()
2351- # checks.installdnsPython()
23522273
23532274 ## Install and Configure OpenDKIM.
23542275
0 commit comments