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