mirror of
https://github.com/tommytran732/Pterodactyl-Script
synced 2024-11-09 05:01:33 -05:00
Added Support for Fedora 33 and Removed Support for Fedora 31
This commit is contained in:
parent
cd698b8cc2
commit
c3c972a557
18
install.sh
18
install.sh
@ -133,8 +133,8 @@ os_check(){
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
elif [ "$lsb_dist" = "fedora" ]; then
|
elif [ "$lsb_dist" = "fedora" ]; then
|
||||||
if [ "$dist_version" != "32" ] && [ "$dist_version" != "31" ]; then
|
if [ "$dist_version" != "33" ] && [ "$dist_version" != "32" ]; then
|
||||||
output "Unsupported Fedora version. Only Fedora 32 and 31 are supported."
|
output "Unsupported Fedora version. Only Fedora 33 and 32 are supported."
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
elif [ "$lsb_dist" = "centos" ]; then
|
elif [ "$lsb_dist" = "centos" ]; then
|
||||||
@ -153,7 +153,7 @@ os_check(){
|
|||||||
output "Supported OS:"
|
output "Supported OS:"
|
||||||
output "Ubuntu: 20.04, 18.04, 16.04"
|
output "Ubuntu: 20.04, 18.04, 16.04"
|
||||||
output "Debian: 10, 9"
|
output "Debian: 10, 9"
|
||||||
output "Fedora: 32, 31"
|
output "Fedora: 33, 32"
|
||||||
output "CentOS: 8, 7"
|
output "CentOS: 8, 7"
|
||||||
output "RHEL: 8"
|
output "RHEL: 8"
|
||||||
exit 2
|
exit 2
|
||||||
@ -422,10 +422,10 @@ repositories_setup(){
|
|||||||
apt-get -y install curl
|
apt-get -y install curl
|
||||||
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ]; then
|
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ]; then
|
||||||
if [ "$lsb_dist" = "fedora" ] ; 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
|
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
|
fi
|
||||||
dnf -y install dnf-plugins-core python2 libsemanage-devel
|
dnf -y install dnf-plugins-core python2 libsemanage-devel
|
||||||
dnf config-manager --set-enabled remi
|
dnf config-manager --set-enabled remi
|
||||||
@ -525,10 +525,10 @@ repositories_setup_0.7.19(){
|
|||||||
apt-get -y install curl
|
apt-get -y install curl
|
||||||
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ]; then
|
elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ]; then
|
||||||
if [ "$lsb_dist" = "fedora" ] ; 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
|
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
|
fi
|
||||||
dnf -y install dnf-plugins-core python2 libsemanage-devel
|
dnf -y install dnf-plugins-core python2 libsemanage-devel
|
||||||
dnf config-manager --set-enabled remi
|
dnf config-manager --set-enabled remi
|
||||||
|
Loading…
Reference in New Issue
Block a user