mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-22 02:21:33 -05:00
Fix EPEL installation
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
3da0b3fc00
commit
35d2a0562c
@ -132,11 +132,11 @@ required_infos() {
|
|||||||
install_dependencies(){
|
install_dependencies(){
|
||||||
output "Installing dependencies..."
|
output "Installing dependencies..."
|
||||||
|
|
||||||
if [ "$lsb_dist" == "rhel" ]; then
|
if [ "$lsb_dist" = "rhel" ]; then
|
||||||
subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
|
subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
|
||||||
rpm --import https://raw.githubusercontent.com/tommytran732/Pterodactyl-Script/master/epel9.asc
|
rpm --import https://raw.githubusercontent.com/tommytran732/Pterodactyl-Script/master/epel9.asc
|
||||||
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
|
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
|
||||||
elif [ "$lsb_dist" == "centos" ]; then
|
elif [ "$lsb_dist" = "centos" ]; then
|
||||||
dnf config-manager --set-enabled crb
|
dnf config-manager --set-enabled crb
|
||||||
dnf install -y epel-release epel-next-release
|
dnf install -y epel-release epel-next-release
|
||||||
else
|
else
|
||||||
@ -499,11 +499,11 @@ upgrade_wings(){
|
|||||||
|
|
||||||
firewall(){
|
firewall(){
|
||||||
if [ "$installoption" = "2" ]; then
|
if [ "$installoption" = "2" ]; then
|
||||||
if [ "$lsb_dist" != "rhel" ]; then
|
if [ "$lsb_dist" = "rhel" ]; then
|
||||||
subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
|
subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
|
||||||
rpm --import https://raw.githubusercontent.com/tommytran732/Pterodactyl-Script/master/epel9.asc
|
rpm --import https://raw.githubusercontent.com/tommytran732/Pterodactyl-Script/master/epel9.asc
|
||||||
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
|
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
|
||||||
elif [ "$lsb_dist" != "centos" ]; then
|
elif [ "$lsb_dist" = "centos" ]; then
|
||||||
dnf config-manager --set-enabled crb
|
dnf config-manager --set-enabled crb
|
||||||
dnf install -y epel-release epel-next-release
|
dnf install -y epel-release epel-next-release
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user