HEX
Server: Apache
System: Linux cp11.instainternet.com 4.18.0-553.94.1.lve.el8.x86_64 #1 SMP Thu Jan 22 12:37:22 UTC 2026 x86_64
User: urbansports (1371)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //opt/hivelocity/check-cpanel-type-update.sh
#!/bin/bash

# CP_UPDATE_TYPE should be LTS, STABLE, RELEASE, CURRENT, or EDGE
# other than that we should warning tech
CP_UPDATE_TYPE=$(cat /etc/cpupdate.conf | grep CPANEL | awk -F '=' '{ print $2 }')
echo $CP_UPDATE_TYPE

# if [[ $CP_UPDATE_TYPE =~ ^[0-9.]+$ ]]
# then
#  # in this case, we need to alert tech support
#   echo 1
# else
#   echo 0
# fi