1
0
mirror of https://github.com/tommytran732/Pterodactyl-Script synced 2024-11-22 18:41:32 -05:00

Update install.sh

This commit is contained in:
Tommy 2021-10-23 03:23:57 -04:00 committed by GitHub
parent e668f68ef8
commit f44f777660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,17 +140,17 @@ os_check(){
output "Unsupported CentOS version. Only CentOS Stream 8 is supported." output "Unsupported CentOS version. Only CentOS Stream 8 is supported."
exit 2 exit 2
fi fi
elif [ "$lsb_dist" = "rocky" ]; then
if [ "$dist_version" != "8" ]; then
output "Unsupported RockyLinux version. Only RockyLinux 8 is supported."
exit 2
fi
elif [ "$lsb_dist" = "rhel" ]; then elif [ "$lsb_dist" = "rhel" ]; then
if [ $dist_version != "8" ]; then if [ $dist_version != "8" ]; then
output "Unsupported RHEL version. Only RHEL 8 is supported." output "Unsupported RHEL version. Only RHEL 8 is supported."
exit 2 exit 2
fi fi
elif [ "$lsb_dist" != "ubuntu" ] && [ "$lsb_dist" != "debian" ] && [ "$lsb_dist" != "centos" ] && [ "$lsb_dist" != "rocky" ] && [ "$lsb_dist" != "rhel" ]; then elif [ "$lsb_dist" = "rocky" ]; then
if [ "$dist_version" != "8" ]; then
output "Unsupported RockyLinux version. Only RockyLinux 8 is supported."
exit 2
fi
elif [ "$lsb_dist" != "ubuntu" ] && [ "$lsb_dist" != "debian" ] && [ "$lsb_dist" != "fedora" ] && [ "$lsb_dist" != "centos" ] && [ "$lsb_dist" != "rhel" ] && [ "$lsb_dist" != "rocky" ]; then
output "Unsupported operating system." output "Unsupported operating system."
output "" output ""
output "Supported OS:" output "Supported OS:"