Update cyberpanel.sh

This commit is contained in:
qtwrk
2020-06-03 13:32:16 +02:00
committed by GitHub
parent 81c8f3d41a
commit 829c2dfb85

View File

@@ -369,11 +369,13 @@ fi
install_required() {
if [[ $CENTOS_8 == "True" ]] ; then
curl https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.0.1/install/CyberPanel8.repo > /etc/yum.repos.d/CyberPanel.repo
dnf install zip -y
elif [[ $CENTOS_8 == "False" ]] ; then
curl https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.0.1/install/CyberPanel.repo > /etc/yum.repos.d/CyberPanel.repo
if [[ -d /etc/yum.repos.d ]] ; then
if [[ $CENTOS_8 == "True" ]] ; then
curl https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.0.1/install/CyberPanel8.repo > /etc/yum.repos.d/CyberPanel.repo
dnf install zip -y
elif [[ $CENTOS_8 == "False" ]] ; then
curl https://raw.githubusercontent.com/usmannasir/cyberpanel/v2.0.1/install/CyberPanel.repo > /etc/yum.repos.d/CyberPanel.repo
fi
fi
echo -e "\nInstalling necessary components..."
@@ -1576,4 +1578,4 @@ main_install
### Disable Centos Default Repos
disable_repos
disable_repos