| Server IP : 104.129.129.72 / Your IP : 216.73.216.229 Web Server : LiteSpeed System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : answe8064 ( 1002) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /opt/installer/tweaks/ |
Upload File : |
#!/bin/bash
# Add this at the begining of all scripts.
if [ -f "include/startup.sh" ]; then
. include/startup.sh
elif [ -f "../include/startup.sh" ]; then
. ../include/startup.sh
fi
rootDir=$(rootDir)
autoconfigPath=$rootDir/autoconfig
if [ -f "$rootDir/temp/php-fpm.success" ]; then
sed -i "s/^serviceRamUsage=[0-9]\+$/serviceRamUsage=50/" $autoconfigPath/php-fpm-autoconfig/php-fpm-autoconfig
fi
if [ -f "$rootDir/temp/mysqld.success" ]; then
sed -i "s/^serviceRamUsage=[0-9]\+$/serviceRamUsage=50/" $autoconfigPath/mysql-server-autoconfig/mysql-server-autoconfig
sed -i "s/^serviceCpuUsage=[0-9]\+$/serviceCpuUsage=50/" $autoconfigPath/mysql-server-autoconfig/mysql-server-autoconfig
fi
echo "Adding descriptions" | log
descriptionAppend "NGiNX Address: ${CWM_SERVERIP}"
descriptionAppend " "
descriptionAppend "NGiNX config files location: /etc/nginx/"
descriptionAppend " "
tagScript success
exit 0