This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Pre-upcp hook which will deny upcp in case the server already has IO, | |
| # chef-client, cdp etc. are running..! | |
| # Story: https://wwwhosting.atlassian.net/browse/SH-222 | |
| # Set limit load avg. for VPS/hardware | |
| # Defaults to 6 for VPS and 10 for hardware ones | |
| if [[ $(/sbin/lspci | wc -l) -eq 0 ]]; then | |
| limit_load=6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Quick fix script for CPANEL-5806 | |
| # Ver. 0.05 | |
| CMP_ERROR_COUNT=$(grep 'check_mail_permissions' /var/log/exim_mainlog |wc -l); | |
| CREATED_FILE=0; | |
| if [ "$CMP_ERROR_COUNT" -ne "0" ]; then | |
| echo "$CMP_ERROR_COUNT errors found in the exim main log referencing a check_mail_permissions issue."; | |
| echo "Example(s):"; | |
| echo "==========="; | |
| grep 'check_mail_permissions' /var/log/exim_mainlog |tail -n10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tail -f /var/cpanel/updatelogs/last |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grep UPDATES /etc/cpupdate.conf |
NewerOlder