mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-03-02 10:20:46 +01:00
Small fixes for Ubuntu 16
This commit is contained in:
@@ -320,7 +320,7 @@ class preFlightsChecks:
|
||||
count = 0
|
||||
while (1):
|
||||
if self.distro == ubuntu:
|
||||
command = "apt-get -y install python-pip"
|
||||
command = "apt-get -y install python-pip libcurl4-openssl-dev"
|
||||
else:
|
||||
command = "yum -y install python-pip"
|
||||
res = subprocess.call(shlex.split(command))
|
||||
@@ -2983,9 +2983,9 @@ milter_default_action = accept
|
||||
if distro == centos:
|
||||
command = "yum install -y libattr-devel xz-devel gpgme-devel mariadb-devel curl-devel"
|
||||
else:
|
||||
command = 'apt-get -y install libattr1 libattr1-dev liblzma-dev libgpgme-dev libmariadbclient-dev ' \
|
||||
'libcurl4-openssl-dev libssl-dev nghttp2 libnghttp2-dev idn2 libidn2-dev librtmp-dev ' \
|
||||
'libpsl-dev nettle-dev libgnutls28-dev libldap2-dev'
|
||||
command = 'apt-get -y install libattr1 libattr1-dev liblzma-dev libgpgme-dev ' \
|
||||
'libmariadbclient-dev libcurl4-openssl-dev libssl-dev nghttp2 libnghttp2-dev idn2 ' \
|
||||
'libidn2-dev librtmp-dev libpsl-dev nettle-dev libgnutls28-dev libldap2-dev'
|
||||
res = subprocess.call(shlex.split(command))
|
||||
|
||||
if res == 1:
|
||||
@@ -3262,14 +3262,12 @@ def main():
|
||||
checks.setup_email_Passwords(installCyberPanel.InstallCyberPanel.mysqlPassword, mysql)
|
||||
checks.setup_postfix_davecot_config(mysql)
|
||||
|
||||
|
||||
checks.install_unzip()
|
||||
checks.install_zip()
|
||||
checks.install_rsync()
|
||||
|
||||
checks.downoad_and_install_raindloop()
|
||||
|
||||
|
||||
checks.download_install_phpmyadmin()
|
||||
|
||||
checks.installFirewalld()
|
||||
|
||||
@@ -232,11 +232,13 @@ class InstallCyberPanel:
|
||||
while (1):
|
||||
|
||||
if self.distro == ubuntu:
|
||||
command = 'apt-get -y install lsphp*'
|
||||
command = 'DEBIAN_FRONTEND=noninteractive apt-get -y install lsphp*'
|
||||
res = os.system(command)
|
||||
|
||||
else:
|
||||
command = 'yum -y groupinstall lsphp-all'
|
||||
cmd = shlex.split(command)
|
||||
res = subprocess.call(cmd)
|
||||
cmd = shlex.split(command)
|
||||
res = subprocess.call(cmd)
|
||||
|
||||
if res == 1:
|
||||
count = count + 1
|
||||
|
||||
Reference in New Issue
Block a user