Current File : //root/patch18042019all.sh.1 |
filechk="/etc/sentora/panel/patch18042019.log"
if [ -f "$filechk" ]
then
echo "Patch 18042019 Already Updated" >> /etc/sentora/panel/patch18042019.log
exit
fi
yum install -y chrony
systemctl enable chronyd
systemctl start chronyd
cd /etc/sentora/panel
wget -O patch18042019.zip http://hostingraja.info/patch/patch18042019.zip
unzip -o patch18042019.zip
service_php=`whereis php | awk '{print $2}'`
`$service_php /etc/sentora/panel/patch18042019.php`
rm -f /etc/sentora/panel/patch18042019.php
rm -f /etc/sentora/panel/patch18042019.zip
echo "Patch 18042019 Ended here" >> /etc/sentora/panel/patch18042019.log