elix
11-25-2005, 12:17 PM
I just made a quick script that I thought would be handy for cleaning out space on cPanel VPSes.
Installation
wget http://www.medialayer.com/dev/css_install.sh
chmod 0755 css_install.sh
./css_install.sh
Updates:
- Changed default e-mail to "root" which will generally work for everybody.
- Set the find command to run as "nice" so that it does not hog CPU. (Zaf.)
- Set a default e-mail template for the e-mails sent to the address specified. This is better than using the "echo" command to generate one each run.
- Changed "automagically" to "automagicly" (Zaf).
- Cleaned up some of the code and made the css.sh file a little easier to understand.
- Made it so that the e-mail includes information about what was deleted. No need to have a logs file or folder now.
---The script will probably not be further updated unless there is a suggestion.---
Installation
wget http://www.medialayer.com/dev/css_install.sh
chmod 0755 css_install.sh
./css_install.sh
Updates:
- Changed default e-mail to "root" which will generally work for everybody.
- Set the find command to run as "nice" so that it does not hog CPU. (Zaf.)
- Set a default e-mail template for the e-mails sent to the address specified. This is better than using the "echo" command to generate one each run.
- Changed "automagically" to "automagicly" (Zaf).
- Cleaned up some of the code and made the css.sh file a little easier to understand.
- Made it so that the e-mail includes information about what was deleted. No need to have a logs file or folder now.
---The script will probably not be further updated unless there is a suggestion.---