Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powertools for other centos 8 variants #809

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cyberpanel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,13 @@ if [[ $Server_OS = "CentOS" ]] ; then
dnf config-manager --set-enabled PowerTools > /dev/null 2>&1
dnf config-manager --set-enabled powertools > /dev/null 2>&1

if [[ "$Server_Country" = *"CN"* ]] ; then
sed -i 's|# baseurl=https://repo.almalinux.org|baseurl=https://cyberpanel.sh/repo.almalinux.org|g' /etc/yum.repos.d/almalinux-powertools.repo
sed -i 's|mirrorlist=|# mirrorlist=|g' /etc/yum.repos.d/almalinux-powertools.repo
sed -i 's|#baseurl=http://dl.rockylinux.org|baseurl=https://cyberpanel.sh/dl.rockylinux.org|g' /etc/yum.repos.d/Rocky-PowerTools.repo
sed -i 's|mirrorlist=|# mirrorlist=|g' /etc/yum.repos.d/Rocky-PowerTools.repo
fi

# cat <<EOF >/etc/yum.repos.d/CentOS-PowerTools-CyberPanel.repo
#[powertools-for-cyberpanel]
#name=CentOS Linux \$releasever - PowerTools
Expand Down