From 8273200c9f83e7c2b493af024dcc44bf34ab1705 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Mon, 17 Jan 2022 21:37:33 +0100 Subject: [PATCH 1/2] fix a sentence to avoid confusion --- cyberpanel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 427a69dca..4d7095c67 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -790,7 +790,7 @@ fi Interactive_Mode_License_Input() { Server_Edition="Enterprise" echo -e "\nPlease note that your server has \e[31m$Total_RAM MB\e[39m RAM" -echo -e "If you are using \e[31mFree Start\e[39m license, It will not start due to \e[31m2GB RAM limit\e[39m.\n" +echo -e "REMINDER: The \e[31mFree Start\e[39m license requires \e[31m2GB or less\e[39m of RAM and the \e[31mSite Owner\e[39m and \e[31mWeb Host Lite\e[39m licenses require \e[31m8GB or less\e[39m.\n" echo -e "If you do not have any license, you can also use trial license (if server has not used trial license before), type \e[31mTRIAL\e[39m\n" printf "%s" "Please input your serial number for LiteSpeed WebServer Enterprise: " From b5b4e436bd973ea15573c74d87b8933b772ce2f5 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Tue, 1 Feb 2022 18:48:21 +0100 Subject: [PATCH 2/2] fix powertools and centos 8 broken repo --- cyberpanel.sh | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 4d7095c67..9e059731f 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -842,15 +842,22 @@ if [[ $Server_OS = "CentOS" ]] ; then yum install -y https://cyberpanel.sh/dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm Check_Return "yum repo" "no_exit" - cat </etc/yum.repos.d/CentOS-PowerTools-CyberPanel.repo -[powertools-for-cyberpanel] -name=CentOS Linux \$releasever - PowerTools -mirrorlist=http://mirrorlist.centos.org/?release=\$releasever&arch=\$basearch&repo=PowerTools&infra=\$infra -baseurl=http://mirror.centos.org/\$contentdir/\$releasever/PowerTools/\$basearch/os/ -gpgcheck=1 -enabled=1 -gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial -EOF + sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* > /dev/null 2>&1 + sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* > /dev/null 2>&1 + # ref: https://stackoverflow.com/questions/70926799/centos-through-vm-no-urls-in-mirrorlist + + dnf config-manager --set-enabled PowerTools > /dev/null 2>&1 + dnf config-manager --set-enabled powertools > /dev/null 2>&1 + +# cat </etc/yum.repos.d/CentOS-PowerTools-CyberPanel.repo +#[powertools-for-cyberpanel] +#name=CentOS Linux \$releasever - PowerTools +#mirrorlist=http://mirrorlist.centos.org/?release=\$releasever&arch=\$basearch&repo=PowerTools&infra=\$infra +#baseurl=http://mirror.centos.org/\$contentdir/\$releasever/PowerTools/\$basearch/os/ +#gpgcheck=1 +#enabled=1 +#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial +#EOF fi if [[ "$Server_OS_Version" = "7" ]]; then