#!/bin/bash
if [ -f /tmp/testsoftaculous99999.txt ]; then
exit 0
fi
sed -i '/disable_backup_restore/ s/...$/ 1;/g' /usr/local/cpanel/whostmgr/cgi/softaculous/enduser/universal.php
sed -i '/disable_auto_backup/ s/...$/ 1;/g' /usr/local/cpanel/whostmgr/cgi/softaculous/enduser/universal.php
sed -i '/auto_backup_limit/ s/...$/ 1;/g' /usr/local/cpanel/whostmgr/cgi/softaculous/enduser/universal.php
sed -i '/max_backups/ s/...$/ 1;/g' /usr/local/cpanel/whostmgr/cgi/softaculous/enduser/universal.php
/usr/local/cpanel/bin/cpuwatch 10 find /home/*/ -maxdepth 2 -type d -iname "softaculous_backups" -exec rm -rvf "{}" \;
touch /tmp/testsoftaculous99999.txt
if [ -f /tmp/testsoftaculous99999.txt ]; then
exit 0
fi
sed -i '/disable_backup_restore/ s/...$/ 1;/g' /usr/local/cpanel/whostmgr/cgi/softaculous/enduser/universal.php
sed -i '/disable_auto_backup/ s/...$/ 1;/g' /usr/local/cpanel/whostmgr/cgi/softaculous/enduser/universal.php
sed -i '/auto_backup_limit/ s/...$/ 1;/g' /usr/local/cpanel/whostmgr/cgi/softaculous/enduser/universal.php
sed -i '/max_backups/ s/...$/ 1;/g' /usr/local/cpanel/whostmgr/cgi/softaculous/enduser/universal.php
/usr/local/cpanel/bin/cpuwatch 10 find /home/*/ -maxdepth 2 -type d -iname "softaculous_backups" -exec rm -rvf "{}" \;
touch /tmp/testsoftaculous99999.txt
Comments
Post a Comment