Double square [[ brackets are a bash features.

`==` is undefined in POSIX sh
This commit is contained in:
Znuff
2020-03-05 20:49:05 +02:00
parent 4dd909d111
commit 413aef3336

View File

@@ -17,7 +17,7 @@ elif [ "$ID" = "centos" ] || [ "$ID" = "cloudlinux" ]; then
7|7.*)
yum install curl wget -y 1> /dev/null
yum update curl wget ca-certificates -y 1> /dev/null
if [[ "$ID" == "centos" ]] ; then
if [ "$ID" = "centos" ]; then
SERVER_OS="CentOS"
else
SERVER_OS="CloudLinux"