recently i install cyberpanel 2.1 in almalinux 8.4 which resemble as Centos 8, so i edit the install as:
#!/bin/sh
OUTPUT=$(cat /etc/*release)
if echo $OUTPUT | grep -q “CentOS Linux 7” ; then
echo “Checking and installing curl and wget”
yum install curl wget -y 1> /dev/null
yum update curl wget ca-certificates -y 1> /dev/null
SERVER_OS=“CentOS”
elif echo $OUTPUT | grep -q “AlmaLinux release 8.4” ; then
echo -e "
Detecting Centos 8…
"
SERVER_OS=“CentOS8”
yum install curl wget -y 1> /dev/null
yum update curl wget ca-certificates -y 1> /dev/null
elif echo $OUTPUT | grep -q “CloudLinux 7” ; then
echo “Checking and installing curl and wget”
yum install curl wget -y 1> /dev/null
yum update curl wget ca-certificates -y 1> /dev/null
SERVER_OS=“CloudLinux”
elif echo $OUTPUT | grep -q “Ubuntu 18.04” ; then
apt install -y -qq wget curl
SERVER_OS=“Ubuntu”
elif echo $OUTPUT | grep -q “Ubuntu 20.04” ; then
apt install -y -qq wget curl
SERVER_OS=“Ubuntu”
else
echo -e "\
Unable to detect your OS…
"
echo -e "
CyberPanel is supported on Ubuntu 18.04, CentOS 7.x a nd CloudLinux 7.x…
"
exit 1
fi
rm -f cyberpanel.sh
rm -f install.tar.gz
curl --silent -o cyberpanel.sh “https://cyberpanel.sh/?dl&$SERVER_OS” 2>/dev/nul l
chmod +x cyberpanel.sh
./cyberpanel.sh
and then Run it with bash install.sh
it’s compatible and got no error