mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 17:56:12 +01:00
enable appstream
This commit is contained in:
@@ -400,7 +400,7 @@ fi
|
|||||||
install_required() {
|
install_required() {
|
||||||
|
|
||||||
if [[ $CENTOS_8 == "True" ]] ; then
|
if [[ $CENTOS_8 == "True" ]] ; then
|
||||||
sed -i 's|enabled=1|enabled=0|g' /etc/yum.repos.d/CentOS-AppStream.repo
|
#sed -i 's|enabled=1|enabled=0|g' /etc/yum.repos.d/CentOS-AppStream.repo
|
||||||
curl https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.0.1/install/CyberPanel8.repo > /etc/yum.repos.d/CyberPanel.repo
|
curl https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.0.1/install/CyberPanel8.repo > /etc/yum.repos.d/CyberPanel.repo
|
||||||
dnf install zip -y
|
dnf install zip -y
|
||||||
elif [[ $CENTOS_8 == "False" ]] ; then
|
elif [[ $CENTOS_8 == "False" ]] ; then
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ rm -f /etc/yum.repos.d/gf.repo
|
|||||||
rm -f /etc/yum.repos.d/powerdns-auth-42.repo
|
rm -f /etc/yum.repos.d/powerdns-auth-42.repo
|
||||||
rm -rf /etc/yum.repos.d/powerdns-auth-master.repo
|
rm -rf /etc/yum.repos.d/powerdns-auth-master.repo
|
||||||
rm -rf /etc/yum.repos.d/gf.repo.rpmnew
|
rm -rf /etc/yum.repos.d/gf.repo.rpmnew
|
||||||
sed -i 's|enabled=1|enabled=0|g' /etc/yum.repos.d/CentOS-AppStream.repo
|
#sed -i 's|enabled=1|enabled=0|g' /etc/yum.repos.d/CentOS-AppStream.repo
|
||||||
yum clean all
|
yum clean all
|
||||||
yum update -y
|
yum update -y
|
||||||
yum autoremove epel-release -y
|
yum autoremove epel-release -y
|
||||||
|
|||||||
@@ -692,7 +692,7 @@ class preFlightsChecks:
|
|||||||
if self.distro == centos:
|
if self.distro == centos:
|
||||||
command = 'yum install --enablerepo=CyberPanel -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre'
|
command = 'yum install --enablerepo=CyberPanel -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre'
|
||||||
elif self.distro == cent8:
|
elif self.distro == cent8:
|
||||||
command = 'dnf --enablerepo=CyberPanel install postfix postfix-mysql -y '
|
command = 'dnf --enablerepo=CyberPanel install postfix3 postfix3-mysql -y '
|
||||||
else:
|
else:
|
||||||
command = 'apt-get -y debconf-utils'
|
command = 'apt-get -y debconf-utils'
|
||||||
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
|
||||||
@@ -721,7 +721,7 @@ class preFlightsChecks:
|
|||||||
if self.distro == centos or self.distro == cent8:
|
if self.distro == centos or self.distro == cent8:
|
||||||
command = 'yum --enablerepo=CyberPanel -y install dovecot dovecot-mysql'
|
command = 'yum --enablerepo=CyberPanel -y install dovecot dovecot-mysql'
|
||||||
elif self.distro == cent8:
|
elif self.distro == cent8:
|
||||||
command = 'dnf --enablerepe=CyberPanel install dovecot23 dovecot23-mysql -y'
|
command = 'dnf --enablerepo=CyberPanel install dovecot23 dovecot23-mysql -y'
|
||||||
else:
|
else:
|
||||||
command = 'apt-get -y install dovecot-mysql'
|
command = 'apt-get -y install dovecot-mysql'
|
||||||
|
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ class InstallCyberPanel:
|
|||||||
elif self.distro == centos:
|
elif self.distro == centos:
|
||||||
command = 'yum --enablerepo=CyberPanel -y install mariadb-server'
|
command = 'yum --enablerepo=CyberPanel -y install mariadb-server'
|
||||||
elif self.distro == cent8:
|
elif self.distro == cent8:
|
||||||
command = 'dnf -y install mariadb-server'
|
command = 'dnf --enablerepo=CyberPanel -y install mariadb-server'
|
||||||
|
|
||||||
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
install.preFlightsChecks.call(command, self.distro, command, command, 1, 1, os.EX_OSERR)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user