if [ -e "/usr/local/cwpsrv/" ]; then
echo
echo "CWP is already installed on your server."
echo "If you want to update it, run this command: sh /scripts/update_cwp"
echo
exit 1
fi
# Check for unsupported Operating systems
arch=$(uname -m)
#centosversion=`rpm -qa \*-release | grep -Ei "oracle|redhat|centos|cloudlinux" | cut -d"-" -f3`
centosversion=`rpm -qa \*-release | grep -Ei "oracle|redhat|centos|cloudlinux" | cut -d"-" -f3|sed 's/\..$//'`
if [[ $arch == "i686" ]]; then
echo "Unsupported Operating system, please use CentOS 7.x 64bit"
exit 1
elif [[ $arch == "armv7l" ]]; then
echo "Unsupported Operating system, please use CentOS 7.x 64bit"
exit 1
fi
#if [ $centosversion -eq "8" ]; then
# echo "Unsupported Operating system, please use CentOS 7.x 64bit"
# exit 1
if [[ $centosversion -eq "6" ]]; then
echo "Unsupported Operating system, please use CentOS 7.x 64bit"
exit 1
elif [[ $centosversion -eq "5" ]]; then
echo "Unsupported Operating system, please use CentOS 7.x 64bit"
exit 1
it seems, the centos8 code is for centos7?
see a snipped from the update script?
any possibility to upgrade from 7 to 8 with a cwp upgrade script?
dont want to resetup many stuffs :/ teamspeak, apache/nginx/vanish edits and many more...