HEX
Server: nginx/1.29.3
System: Linux 11979.bigscoots-wpo.com 6.8.0-88-generic #89-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 01:02:46 UTC 2025 x86_64
User: nginx (1068)
PHP: 7.4.33
Disabled: exec,system,passthru,shell_exec,proc_open,proc_close,popen,show_source,cmd# Do not modify this line # 1684243876
Upload Files
File: //proc/1284356/cwd/bigscoots/bigscoots_wpo_stats.sh
#!/bin/bash

CTID=$1
dbserver=$(vzctl exec "$CTID" mysql -V)
dbversion=$(vzctl exec "$CTID" mysql -V | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
nginxverison=$(vzctl exec "$CTID" nginx -v 2>&1 | awk -F '/' '{print $2}' | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')

if [ -e /vz/root/"$CTID"/usr/local/src/centminmod/centmin.sh ]
then
echo "$CTID is a wpo server"
vzctl exec "$CTID" php -v | head -1 | awk '{print $1, $2}'
fi

if grep -i mariadb <<< "$dbserver" > /dev/null ; then
    echo MariaDB "$dbversion"
else
	echo MySQL "$dbversion"
fi

echo Nginx "$nginxverison"