Last active
May 3, 2016 07:01
-
-
Save francisoud/ad295f46812ec442070fbf417e54ea12 to your computer and use it in GitHub Desktop.
Script to clean up /tmp dir from files created during various jenkins builds
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 | |
# see ctonrtab -e | |
# At 02:00 on Mon. | |
# 0 2 * * 1 /root/cleanup-tmp.sh >> /tmp/crontab/cleanup-tmp.log 2>&1 | |
echo '-------- /root/cleanup-tmp.sh ---------' | |
date | |
# cleanup /tmp files and directories | |
rm -vfr /tmp/log* /tmp/*log /tmp/*.sh /tmp/RackMultipart* /tmp/npm-* /tmp/native-platform* /tmp/phantomjs* /tmp/sonar-* /tmp/*.css |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment