Skip to content

Commit

Permalink
fix oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Oct 8, 2024
1 parent 5c5c0d7 commit 2b38c2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ elif [[ "${release}" == "rocky" ]]; then
if [[ ${os_version} -lt 8 ]]; then
echo -e "${red} Please use Rocky Linux 8 or higher ${plain}\n" && exit 1
fi
elif [[ "${release}" == "oracle" ]]; then
elif [[ "${release}" == "ol" ]]; then
if [[ ${os_version} -lt 8 ]]; then
echo -e "${red} Please use Oracle Linux 8 or higher ${plain}\n" && exit 1
fi
Expand Down Expand Up @@ -112,7 +112,7 @@ install_dependencies() {
ubuntu | debian | armbian)
apt-get update && apt-get install -y -q wget curl tar tzdata
;;
centos | almalinux | rocky | oracle)
centos | almalinux | rocky | ol)
yum -y update && yum install -y -q wget curl tar tzdata
;;
fedora | amzn)
Expand Down
8 changes: 4 additions & 4 deletions x-ui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ elif [[ "${release}" == "rocky" ]]; then
if [[ ${os_version} -lt 8 ]]; then
echo -e "${red} Please use Rocky Linux 8 or higher ${plain}\n" && exit 1
fi
elif [[ "${release}" == "oracle" ]]; then
elif [[ "${release}" == "ol" ]]; then
if [[ ${os_version} -lt 8 ]]; then
echo -e "${red} Please use Oracle Linux 8 or higher ${plain}\n" && exit 1
fi
Expand Down Expand Up @@ -622,7 +622,7 @@ ssl_cert_issue() {
ubuntu | debian | armbian)
apt update && apt install socat -y
;;
centos | almalinux | rocky | oracle)
centos | almalinux | rocky | ol)
yum -y update && yum -y install socat
;;
fedora | amzn)
Expand Down Expand Up @@ -973,10 +973,10 @@ enable_bbr() {
ubuntu | debian | armbian)
apt-get update && apt-get install -yqq --no-install-recommends ca-certificates
;;
centos | almalinux | rocky | oracle)
centos | almalinux | rocky | ol)
yum -y update && yum -y install ca-certificates
;;
fedora)
fedora | amzn)
dnf -y update && dnf -y install ca-certificates
;;
arch | manjaro | parch)
Expand Down

0 comments on commit 2b38c2a

Please sign in to comment.