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