Current File : //root/30062022.sh.3
mkdir -p /patch/
filechk="/patch/patch30062022.log"
if [ -f "$filechk" ]
then
    echo "Patch 30062022 Already Updated" >> /patch/patch30062022.log
    exit
fi
touch /patch/patch30062022.log
echo "Patch 30062022 started here" >> /patch/patch30062022.log
cd /patch/
wget -O 30062022report.zip https://d.ovipanel.in/Patch/30062022report.zip
unzip -o 30062022report.zip
PHP_PATH="/usr/local/php56/bin/php"
if [ -f "$PHP_PATH" ]
then
    echo "Php multiple version is there" >> /patch/patch30062022.log
else
PHP_PATH=`whereis php | awk '{print $2}'`
fi
`$PHP_PATH /patch/30062022report.php >> /patch/patch30062022.log`
rm -f /patch/30062022report.php
rm -f /patch/30062022report.zip