From 829c2dfb850c69df5b2668f06349af2e4adc2640 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Wed, 3 Jun 2020 13:32:16 +0200 Subject: [PATCH] Update cyberpanel.sh --- cyberpanel.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/cyberpanel.sh b/cyberpanel.sh index 8baa63551..04b1a576a 100644 --- a/cyberpanel.sh +++ b/cyberpanel.sh @@ -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 \ No newline at end of file +disable_repos