Current File : //root/07082023.sh.1 |
mkdir -p /patch/
filechk="/patch/patch07082023.log"
if [ -f "$filechk" ]
then
echo "Patch 07082023 Already Updated" >> /patch/patch07082023.log
exit
fi
touch /patch/patch07082023.log
echo "Patch 07082023 started here" >> /patch/patch07082023.log
cd /etc/sentora/panel
#wget -O manage.zip https://d.ovipanel.in/Patch/manage.zip
#unzip -o manage.zip
wget -O manage.zip d.ovipanel.in/Patch/manage_final.zip
unzip -o manage.zip
#/usr/bin/chmod 644 /etc/sentora/panel/manage.php
#/usr/bin/chown ovipanel. /etc/sentora/panel/manage.php
sleep 60
chmod_output=$(/bin/chmod 644 /etc/sentora/panel/manage.php 2>&1)
chown_output=$(/bin/chown ovipanel. /etc/sentora/panel/manage.php 2>&1)
touch /var/log/manage.log
/bin/chown ovipanel. /var/log/manage.log
echo "chmod output: $chmod_output" >> /patch/patch07082023.log
echo "chown output: $chown_output" >> /patch/patch07082023.log