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:
parent
076f9e4b21
commit
759831d6fc
@ -113,7 +113,7 @@ os_check(){
|
|||||||
if [ -r /etc/os-release ]; then
|
if [ -r /etc/os-release ]; then
|
||||||
lsb_dist="$(. /etc/os-release && echo "$ID")"
|
lsb_dist="$(. /etc/os-release && echo "$ID")"
|
||||||
dist_version="$(. /etc/os-release && echo "$VERSION_ID")"
|
dist_version="$(. /etc/os-release && echo "$VERSION_ID")"
|
||||||
if [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" = "alma" ]; then
|
if [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" = "almalinux" ]; then
|
||||||
dist_version="$(echo $dist_version | awk -F. '{print $1}')"
|
dist_version="$(echo $dist_version | awk -F. '{print $1}')"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user