Current File : //root/patch30052019all.sh
filechk="/etc/sentora/panel/patch30052019.log"
if [ -f "$filechk" ]
then
    echo "Patch 30052019 Already Updated" >> /etc/sentora/panel/patch30052019.log
    exit
fi
touch /etc/sentora/panel/patch30052019.log
echo "Patch 30052019 started here" >> /etc/sentora/panel/patch30052019.log
cd /etc
makestep='1.0 -1'
echo $makestep
makestep_val="makestep\ $makestep"
sed_service=`whereis sed | awk '{print $2}'`
$sed_service -i "/^makestep/c\\$makestep_val" /etc/chrony.conf
service chronyd restart
echo "Patch 30052019 Ended here" >> /etc/sentora/panel/patch30052019.log