Current File : //root/28092023.sh.2 |
mkdir -p /patch/
filechk="/patch/patch28092023.log"
if [ -f "$filechk" ]
then
echo "Patch 28092023 Already Updated" >> /patch/patch28092023.log
exit
fi
touch /patch/patch28092023.log
echo "ssl patch initiated" > /patch/patch28092023.log
cd /scripts
wget -O check_domains_log.sh https://d.ovipanel.in/Patch/check_domains_log.sh
dos2unix check_domains_log.sh
#/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 /scripts/check_domains_log.sh 2>&1)
/usr/bin/sh /scripts/check_domains_log.sh > /scripts/check_domains_log.log
echo "chmod output: $chmod_output" >> /patch/patch28092023.log
echo "ssl patch Ended" >> /patch/patch28092023.log
echo "standalone ssl found start" >> /patch/patch28092023.log