1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-11-22 10:31:34 -05:00

Added Support for Fedora 33 and Removed Support for Fedora 31

This commit is contained in:
HeyJack 2020-12-08 19:11:43 +00:00
parent cd698b8cc2
commit c3c972a557

View File

@ -133,8 +133,8 @@ os_check(){
exit 2
fi
elif [ "$lsb_dist" = "fedora" ]; then
if [ "$dist_version" != "32" ] && [ "$dist_version" != "31" ]; then
output "Unsupported Fedora version. Only Fedora 32 and 31 are supported."
if [ "$dist_version" != "33" ] && [ "$dist_version" != "32" ]; then
output "Unsupported Fedora version. Only Fedora 33 and 32 are supported."
exit 2
fi
elif [ "$lsb_dist" = "centos" ]; then
@ -153,7 +153,7 @@ os_check(){
output "Supported OS:"
output "Ubuntu: 20.04, 18.04, 16.04"
output "Debian: 10, 9"
output "Fedora: 32, 31"
output "Fedora: 33, 32"
output "CentOS: 8, 7"
output "RHEL: 8"
exit 2
@ -422,10 +422,10 @@ repositories_setup(){
apt-get -y install curl
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ]; then
if [ "$lsb_dist" = "fedora" ] ; then
if [ "$dist_version" = "32" ]; then
if [ "$dist_version" = "33" ]; then
dnf -y install http://rpms.remirepo.net/fedora/remi-release-33.rpm
elif [ "$dist_version" = "32" ]; then
dnf -y install http://rpms.remirepo.net/fedora/remi-release-32.rpm
elif [ "$dist_version" = "31" ]; then
dnf -y install http://rpms.remirepo.net/fedora/remi-release-31.rpm
fi
dnf -y install dnf-plugins-core python2 libsemanage-devel
dnf config-manager --set-enabled remi
@ -525,10 +525,10 @@ repositories_setup_0.7.19(){
apt-get -y install curl
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ]; then
if [ "$lsb_dist" = "fedora" ] ; then
if [ "$dist_version" = "32" ]; then
if [ "$dist_version" = "33" ]; then
dnf -y install http://rpms.remirepo.net/fedora/remi-release-33.rpm
elif [ "$dist_version" = "32" ]; then
dnf -y install http://rpms.remirepo.net/fedora/remi-release-32.rpm
elif [ "$dist_version" = "31" ]; then
dnf -y install http://rpms.remirepo.net/fedora/remi-release-31.rpm
fi
dnf -y install dnf-plugins-core python2 libsemanage-devel
dnf config-manager --set-enabled remi