[ SEA-GHOST MINI SHELL]

Path : /proc/2/root/proc/self/root/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/root/proc/self/root/var/lib/zabbix/installatron_versioncheck.sh

#!/bin/bash
# argument 1: "9.1.42"
# argument 2: "yes|no"
CHECK=$1
NEED=$2
RVER="/var/lib/zabbix/installatron_version"

# No need to check for Some servers group: SiteBeat, SiteBulder, ...
if [ "$NEED" == "no" ]; then
    exit 0
fi
#########
errorcheck(){
  echo "error: $1"
  exit 1
}
#########
if [ ! -f /usr/local/installatron/installatron ]; then
  echo "Did not installed"
  exit 0
fi
########
INSTVER=`/usr/local/installatron/installatron help | grep Version 2>/dev/null | cut -f2 -d' '`
########
if [ -z "$INSTVER" ]; then
  echo "Installatron version did not recieved"
  exit 0
fi
#######
if [ -f $RVER ];then
  CHECK=$(cat $RVER)
  if [ -z "$CHECK" ]; then
    errorcheck "Empty checking value"
  elif [ "$INSTVER" == "$CHECK" ]; then
    echo OK
    exit 0
  else
    errorcheck "need $CHECK is $INSTVER"
  fi
else
  errorcheck "/var/lib/zabbix/installatron_version  is absent"
fi

SEA-GHOST - SHELL CODING BY SEA-GHOST