From de0c5a3d32480edb5e6a29cbbf11f6e4b66f434d Mon Sep 17 00:00:00 2001 From: Muttahir Aon Syed Date: Tue, 8 Sep 2020 10:58:05 +0500 Subject: [PATCH 01/12] rsync suspension Temporarily suspending rysnc installation to make sure everything else installs till the repo issue is fixed --- install/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/install.py b/install/install.py index 3d9debdc4..ded7adadf 100755 --- a/install/install.py +++ b/install/install.py @@ -2258,7 +2258,7 @@ def main(): checks.install_unzip() checks.install_zip() - checks.install_rsync() + ## checks.install_rsync() checks.installFirewalld() From 9cc27443e5ff21b20d4e55946bdf5cb33fcd547f Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 8 Sep 2020 20:13:21 +0500 Subject: [PATCH 02/12] do not depend on CyberPanel own repo fro cent7 --- cyberpanel.sh | 83 ++++++++++++++++++++++++++++-------- install/install.py | 6 +-- install/installCyberPanel.py | 4 ++ 3 files changed, 73 insertions(+), 20 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index cb83aa324..efca4cc0f 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -380,42 +380,91 @@ fi install_required() { if [[ -d /etc/yum.repos.d ]] ; then + yum clean all + yum update -y + yum autoremove epel-release -y + rm -f /etc/yum.repos.d/epel.repo + rm -f /etc/yum.repos.d/epel.repo.rpmsave + yum install epel-release -y + if [[ $CENTOS_8 == "True" ]] ; then dnf install zip -y elif [[ $CENTOS_8 == "False" ]] ; then +<<<<<<< HEAD curl https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.0.1/install/CyberPanel.repo > /etc/yum.repos.d/CyberPanel.repo +======= + + ###### Setup Required Repos + + ## Start with PDNS + + yum install yum-plugin-priorities -y + curl -o /etc/yum.repos.d/powerdns-auth-43.repo https://repo.powerdns.com/repo-files/centos-auth-43.repo + + ## MariaDB + + cat << EOF > /etc/yum.repos.d/MariaDB.repo +# MariaDB 10.5 CentOS repository list - created 2020-09-08 14:54 UTC +# http://downloads.mariadb.org/mariadb/repositories/ +[mariadb] +name = MariaDB +baseurl = http://yum.mariadb.org/10.5/centos7-amd64 +gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB +gpgcheck=1 +EOF + + ## Ghetoo Repo for Postfix/Dovecot + + yum --nogpg install https://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm -y + + ## Enable LUX Repo + + cat << EOF > /etc/yum.repos.d/lux.repo +[lux] +name=CentOS $releasever - $basearch - Lux +baseurl=http://repo.iotti.biz/CentOS/$releasever +enabled=1 +gpgcheck=1 +gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LUX +EOF + + ## Copr for restic + + cat << EOF > /etc/yum.repos.d/copr.repo +[restic] +name=Copr repo for restic owned by copart +baseurl=https://download.copr.fedorainfracloud.org/results/copart/restic/epel-7-$basearch/ +type=rpm-md +skip_if_unavailable=True +gpgcheck=1 +gpgkey=https://download.copr.fedorainfracloud.org/results/copart/restic/pubkey.gpg +repo_gpgcheck=0 +enabled=1 +enabled_metadata=1 +EOF + + ## IUS Repo + + yum install https://repo.ius.io/ius-release-el7.rpm -y + + +>>>>>>> 29c0a38e... do not depend on CyberPanel own repo fro cent7 fi fi echo -e "\nInstalling necessary components..." if [[ $SERVER_OS == "CentOS" ]] ; then - if [[ $CENTOS_8 == "False" ]] ; then - timeout 10 rpm --import https://$DOWNLOAD_SERVER/mariadb/RPM-GPG-KEY-MariaDB - timeout 10 rpm --import https://$DOWNLOAD_SERVER/litespeed/RPM-GPG-KEY-litespeed - timeout 10 rpm --import https://$DOWNLOAD_SERVER/powerdns/FD380FBB-pub.asc - timeout 10 rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 - timeout 10 rpm --import https://$DOWNLOAD_SERVER/gf-plus/RPM-GPG-KEY-gf.el7 - timeout 10 rpm --import https://$DOWNLOAD_SERVER/lux/RPM-GPG-KEY-LUX - timeout 10 rpm --import https://$DOWNLOAD_SERVER/ius/RPM-GPG-KEY-IUS-7 - timeout 10 rpm --import https://repo.dovecot.org/DOVECOT-REPO-GPG - timeout 10 rpm --import https://copr-be.cloud.fedoraproject.org/results/copart/restic/pubkey.gpg - curl https://getfedora.org/static/fedora.gpg | gpg --import - fi yum clean all yum update -y - yum autoremove epel-release -y - rm -f /etc/yum.repos.d/epel.repo - rm -f /etc/yum.repos.d/epel.repo.rpmsave if [[ $CENTOS_8 == "False" ]] ; then - yum --enablerepo=CyberPanel install -y wget strace net-tools curl which bc telnet htop libevent-devel gcc libattr-devel xz-devel gpgme-devel curl-devel git socat openssl-devel MariaDB-shared mariadb-devel yum-utils python36u python36u-pip python36u-devel + yum install -y wget strace net-tools curl which bc telnet htop libevent-devel gcc libattr-devel xz-devel gpgme-devel curl-devel git socat openssl-devel MariaDB-shared mariadb-devel yum-utils python36u python36u-pip python36u-devel check_return yum -y groupinstall development check_return fi if [[ $CENTOS_8 == "True" ]] ; then - dnf install epel-release -y dnf install -y wget strace net-tools curl which bc telnet htop libevent-devel gcc libattr-devel xz-devel mariadb-devel curl-devel git platform-python-devel tar socat python3 check_return dnf --enablerepo=PowerTools install gpgme-devel -y diff --git a/install/install.py b/install/install.py index ded7adadf..8d8e8d65b 100755 --- a/install/install.py +++ b/install/install.py @@ -723,7 +723,7 @@ class preFlightsChecks: self.stdOut("Install dovecot - do the install") if self.distro == centos: - command = 'yum install --enablerepo=CyberPanel -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre' + command = 'yum install --enablerepo=gf-plus -y postfix3 postfix3-ldap postfix3-mysql postfix3-pcre' elif self.distro == cent8: command = 'dnf --nogpg install -y https://mirror.ghettoforge.org/distributions/gf/el/8/gf/x86_64/gf-release-8-11.gf.el8.noarch.rpm' @@ -756,7 +756,7 @@ class preFlightsChecks: ## if self.distro == centos: - command = 'yum --enablerepo=CyberPanel -y install dovecot dovecot-mysql' + command = 'yum --enablerepo=gf-plus -y install dovecot dovecot-mysql' elif self.distro == cent8: command = 'dnf install --enablerepo=gf-plus dovecot23 dovecot23-mysql -y' else: @@ -2009,7 +2009,7 @@ milter_default_action = accept if os.path.exists(CentOSPath): if self.distro == centos: - command = 'yum --enablerepo=CyberPanel install restic -y' + command = 'yum --enablerepo=restic install restic -y' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) elif self.distro == cent8: diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 940adc418..4877bee73 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -243,7 +243,11 @@ class InstallCyberPanel: if self.distro == ubuntu: command = "apt-get -y install mariadb-server" elif self.distro == centos: +<<<<<<< HEAD command = 'yum --enablerepo=CyberPanel -y install mariadb-server' +======= + command = 'yum --enablerepo=mariadb -y install MariaDB-server MariaDB-client' +>>>>>>> 29c0a38e... do not depend on CyberPanel own repo fro cent7 elif self.distro == cent8: command = 'dnf -y install mariadb-server' From 3afb47bc043fa1cad4e93a4f84754bc2ded0c5a9 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 8 Sep 2020 20:20:27 +0500 Subject: [PATCH 03/12] remove lux --- cyberpanel.sh | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index efca4cc0f..91be219c5 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -413,20 +413,10 @@ gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 EOF - ## Ghetoo Repo for Postfix/Dovecot + ## Ghetoo Repo for Postfix/Dovecot - yum --nogpg install https://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm -y + yum --nogpg install https://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm -y - ## Enable LUX Repo - - cat << EOF > /etc/yum.repos.d/lux.repo -[lux] -name=CentOS $releasever - $basearch - Lux -baseurl=http://repo.iotti.biz/CentOS/$releasever -enabled=1 -gpgcheck=1 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LUX -EOF ## Copr for restic From c8a13d30e9b8474994fb7f33c18dcc040acff3cb Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 8 Sep 2020 20:25:21 +0500 Subject: [PATCH 04/12] restic fix; --- cyberpanel.sh | 14 ++------------ install/install.py | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 91be219c5..ef33f9bdc 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -420,18 +420,8 @@ EOF ## Copr for restic - cat << EOF > /etc/yum.repos.d/copr.repo -[restic] -name=Copr repo for restic owned by copart -baseurl=https://download.copr.fedorainfracloud.org/results/copart/restic/epel-7-$basearch/ -type=rpm-md -skip_if_unavailable=True -gpgcheck=1 -gpgkey=https://download.copr.fedorainfracloud.org/results/copart/restic/pubkey.gpg -repo_gpgcheck=0 -enabled=1 -enabled_metadata=1 -EOF + yum install yum-plugin-copr -y + yum copr enable copart/restic -y ## IUS Repo diff --git a/install/install.py b/install/install.py index 8d8e8d65b..d350ab456 100755 --- a/install/install.py +++ b/install/install.py @@ -2009,7 +2009,7 @@ milter_default_action = accept if os.path.exists(CentOSPath): if self.distro == centos: - command = 'yum --enablerepo=restic install restic -y' + command = 'yum install restic -y' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) elif self.distro == cent8: From 30c5b8b435cbb2831d6ccecddbf07fa50319837a Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 8 Sep 2020 20:43:58 +0500 Subject: [PATCH 05/12] fix dovecot --- install/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/install.py b/install/install.py index d350ab456..dc17a792d 100755 --- a/install/install.py +++ b/install/install.py @@ -756,7 +756,7 @@ class preFlightsChecks: ## if self.distro == centos: - command = 'yum --enablerepo=gf-plus -y install dovecot dovecot-mysql' + command = 'yum --enablerepo=gf-plus -y install dovecot23 dovecot23-mysql' elif self.distro == cent8: command = 'dnf install --enablerepo=gf-plus dovecot23 dovecot23-mysql -y' else: From f573b39405fde3ad90440b18a2aace6106fd48fd Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 8 Sep 2020 22:10:46 +0500 Subject: [PATCH 06/12] reenable rsync --- install/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/install.py b/install/install.py index dc17a792d..0b4aa9820 100755 --- a/install/install.py +++ b/install/install.py @@ -2258,7 +2258,7 @@ def main(): checks.install_unzip() checks.install_zip() - ## checks.install_rsync() + checks.install_rsync() checks.installFirewalld() From 93e3aa82a4414bdd6f275f62db9148dad670afad Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 8 Sep 2020 22:12:15 +0500 Subject: [PATCH 07/12] reenable rsync --- install/installCyberPanel.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index 4877bee73..e58b77ecb 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -243,11 +243,7 @@ class InstallCyberPanel: if self.distro == ubuntu: command = "apt-get -y install mariadb-server" elif self.distro == centos: -<<<<<<< HEAD - command = 'yum --enablerepo=CyberPanel -y install mariadb-server' -======= command = 'yum --enablerepo=mariadb -y install MariaDB-server MariaDB-client' ->>>>>>> 29c0a38e... do not depend on CyberPanel own repo fro cent7 elif self.distro == cent8: command = 'dnf -y install mariadb-server' From d1cfee5cb8c7642ed621b77b8e1472da10fa71a0 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 8 Sep 2020 22:13:35 +0500 Subject: [PATCH 08/12] reenable rsync --- cyberpanel.sh | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index ef33f9bdc..569993eea 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -390,10 +390,6 @@ if [[ -d /etc/yum.repos.d ]] ; then if [[ $CENTOS_8 == "True" ]] ; then dnf install zip -y elif [[ $CENTOS_8 == "False" ]] ; then -<<<<<<< HEAD - curl https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.0.1/install/CyberPanel.repo > /etc/yum.repos.d/CyberPanel.repo -======= - ###### Setup Required Repos ## Start with PDNS @@ -426,9 +422,6 @@ EOF ## IUS Repo yum install https://repo.ius.io/ius-release-el7.rpm -y - - ->>>>>>> 29c0a38e... do not depend on CyberPanel own repo fro cent7 fi fi From 8748765c592520c2f9e60d85d6bec8a656dbf19c Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Tue, 8 Sep 2020 23:03:09 +0500 Subject: [PATCH 09/12] mysql priv bug --- install/installCyberPanel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/installCyberPanel.py b/install/installCyberPanel.py index e58b77ecb..f1bc338ec 100755 --- a/install/installCyberPanel.py +++ b/install/installCyberPanel.py @@ -257,9 +257,9 @@ class InstallCyberPanel: def changeMYSQLRootPassword(self): if self.remotemysql == 'OFF': if self.distro == ubuntu: - passwordCMD = "use mysql;update user set password=PASSWORD('" + InstallCyberPanel.mysql_Root_password + "') where User='root';UPDATE user SET plugin='' WHERE User='root';flush privileges;" + passwordCMD = "use mysql;GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '%s';UPDATE user SET plugin='' WHERE User='root';flush privileges;" % (InstallCyberPanel.mysql_Root_password) else: - passwordCMD = "use mysql;update user set password=PASSWORD('" + InstallCyberPanel.mysql_Root_password + "') where User='root';flush privileges;" + passwordCMD = "use mysql;GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '%s';flush privileges;" % (InstallCyberPanel.mysql_Root_password) command = 'mysql -u root -e "' + passwordCMD + '"' From 07d2efefaa4216d5498816058e88f45d2b0e8eb4 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 9 Sep 2020 13:03:24 +0500 Subject: [PATCH 10/12] remove cyberpanel own reop during upgrade for cen7 --- cyberpanel.sh | 1 + cyberpanel_upgrade.sh | 63 ++++++++++++++++++++++++++++--------------- 2 files changed, 42 insertions(+), 22 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 569993eea..be46c3c6a 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -380,6 +380,7 @@ fi install_required() { if [[ -d /etc/yum.repos.d ]] ; then + yum clean all yum update -y yum autoremove epel-release -y diff --git a/cyberpanel_upgrade.sh b/cyberpanel_upgrade.sh index 5490e738f..1461a3a86 100644 --- a/cyberpanel_upgrade.sh +++ b/cyberpanel_upgrade.sh @@ -14,25 +14,6 @@ SERVER_COUNTRY="unknow" SERVER_COUNTRY=$(curl --silent --max-time 5 https://cyberpanel.sh/?country) UBUNTU_20="False" -### Update and remove not needed repos - -if [[ $SERVER_OS == "CentOS" ]]; then - rm -f /etc/yum.repos.d/ius-archive.repo - rm -f /etc/yum.repos.d/copart-restic-epel-7.repo - rm -f /etc/yum.repos.d/dovecot.repo - rm -f /etc/yum.repos.d/epel.repo - rm -f /etc/yum.repos.d/epel-testing.repo - rm -f /etc/yum.repos.d/frank.repo - rm -f /etc/yum.repos.d/ius.repo - rm -f /etc/yum.repos.d/ius-testing.repo - rm -f /etc/yum.repos.d/MariaDB.repo - rm -f /etc/yum.repos.d/lux.repo - rm -f /etc/yum.repos.d/gf.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/gf.repo.rpmnew -fi - ## if [[ ${#SERVER_COUNTRY} == "2" ]] || [[ ${#SERVER_COUNTRY} == "6" ]]; then @@ -165,7 +146,7 @@ OUTPUT=$(cat /etc/*release) if echo $OUTPUT | grep -q "CentOS Linux 7"; then echo -e "\nDetecting CentOS 7.X...\n" SERVER_OS="CentOS7" - curl https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.0.1/install/CyberPanel.repo >/etc/yum.repos.d/CyberPanel.repo + rm -f /etc/yum.repos.d/CyberPanel.repo yum clean all yum update -y yum autoremove epel-release -y @@ -174,7 +155,7 @@ if echo $OUTPUT | grep -q "CentOS Linux 7"; then elif echo $OUTPUT | grep -q "CloudLinux 7"; then echo -e "\nDetecting CloudLinux 7.X...\n" SERVER_OS="CentOS7" - curl https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.0.1/install/CyberPanel.repo >/etc/yum.repos.d/CyberPanel.repo + rm -f /etc/yum.repos.d/CyberPanel.repo yum clean all yum update -y yum autoremove epel-release -y @@ -219,9 +200,47 @@ else fi if [ $SERVER_OS = "CentOS7" ]; then + yum install epel-release -y yum -y install yum-utils yum -y groupinstall development - yum --enablerepo=CyberPanel install -y wget strace htop net-tools telnet curl which bc telnet htop libevent-devel gcc libattr-devel xz-devel gpgme-devel curl-devel git socat openssl-devel MariaDB-shared mariadb-devel python36u python36u-pip python36u-devel + + ###### Setup Required Repos + + ## Start with PDNS + + yum install yum-plugin-priorities -y + curl -o /etc/yum.repos.d/powerdns-auth-43.repo https://repo.powerdns.com/repo-files/centos-auth-43.repo + + ## MariaDB + + cat << EOF > /etc/yum.repos.d/MariaDB.repo +# MariaDB 10.5 CentOS repository list - created 2020-09-08 14:54 UTC +# http://downloads.mariadb.org/mariadb/repositories/ +[mariadb] +name = MariaDB +baseurl = http://yum.mariadb.org/10.5/centos7-amd64 +gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB +gpgcheck=1 +EOF + + ## Ghetoo Repo for Postfix/Dovecot + + yum --nogpg install https://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm -y + + + ## Copr for restic + + yum install yum-plugin-copr -y + yum copr enable copart/restic -y + + ## IUS Repo + + yum install https://repo.ius.io/ius-release-el7.rpm -y + + ### + + yum install -y wget strace htop net-tools telnet curl which bc telnet htop libevent-devel gcc libattr-devel xz-devel gpgme-devel curl-devel git socat openssl-devel MariaDB-shared mariadb-devel python36u python36u-pip python36u-devel + elif [ $SERVER_OS = "CentOS8" ]; then dnf install -y wget strace htop net-tools telnet curl which bc telnet htop libevent-devel gcc libattr-devel xz-devel mariadb-devel curl-devel git platform-python-devel tar socat dnf --enablerepo=PowerTools install gpgme-devel -y From 2b6c22b9193f714c26348bfdd5930d3df75ff70e Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 9 Sep 2020 13:35:48 +0500 Subject: [PATCH 11/12] upgrade mariadb if 10.1 --- cyberpanel_upgrade.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/cyberpanel_upgrade.sh b/cyberpanel_upgrade.sh index 1461a3a86..953640d0e 100644 --- a/cyberpanel_upgrade.sh +++ b/cyberpanel_upgrade.sh @@ -6,6 +6,7 @@ export LC_CTYPE=en_US.UTF-8 SUDO_TEST=$(set) SERVER_OS='Undefined' OUTPUT=$(cat /etc/*release) +MYSQLCurrentVersion=$(systemctl status mysql) TEMP=$(curl --silent https://cyberpanel.net/version.txt) BRANCH_NAME=v${TEMP:12:3}.${TEMP:25:1} GIT_URL="github.com/usmannasir/cyberpanel" @@ -223,6 +224,27 @@ gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 EOF + ## Lets upgrade mariadb on spot + + if echo $MYSQLCurrentVersion | grep -q "MariaDB 10.1"; then + + cp /etc/my.cnf /etc/my.cnf.bak + mkdir /etc/cnfbackup + cp -R /etc/my.cnf.d/ /etc/cnfbackup/ + + yum remove MariaDB-server MariaDB-client galera + yum --enablerepo=mariadb -y install MariaDB-server MariaDB-client + + cp -f /etc/my.cnf.bak /etc/my.cnf + rm -rf /etc/etc/my.cnf.d/ + mv /etc/cnfbackup/my.cnf.d /etc/ + + systemctl enable mysql + systemctl start mysql + + fi + + ## Ghetoo Repo for Postfix/Dovecot yum --nogpg install https://mirror.ghettoforge.org/distributions/gf/gf-release-latest.gf.el7.noarch.rpm -y From 010107f1246ad4e5f7b8164c48ca6644444425f3 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Wed, 9 Sep 2020 13:44:09 +0500 Subject: [PATCH 12/12] upgrade mariadb if 10.1 --- cyberpanel_upgrade.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cyberpanel_upgrade.sh b/cyberpanel_upgrade.sh index 953640d0e..18872ac41 100644 --- a/cyberpanel_upgrade.sh +++ b/cyberpanel_upgrade.sh @@ -232,11 +232,11 @@ EOF mkdir /etc/cnfbackup cp -R /etc/my.cnf.d/ /etc/cnfbackup/ - yum remove MariaDB-server MariaDB-client galera + yum remove MariaDB-server MariaDB-client galera -y yum --enablerepo=mariadb -y install MariaDB-server MariaDB-client cp -f /etc/my.cnf.bak /etc/my.cnf - rm -rf /etc/etc/my.cnf.d/ + rm -rf /etc/my.cnf.d/ mv /etc/cnfbackup/my.cnf.d /etc/ systemctl enable mysql