mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-28 09:20:43 +01:00
Double square [[ brackets are a bash features.
`==` is undefined in POSIX sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user