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