Clear temp files daily

This commit is contained in:
Bob Mottram 2017-01-03 21:53:49 +00:00
parent 27ec9e01e0
commit fffc1cfbe7
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ function randomize_cron {
function schedule_stig_tests {
echo '#!/bin/bash' > /etc/cron.daily/stig_tests
echo "pkill ${PROJECT_NAME}-tests" >> /etc/cron.daily/stig_tests
echo 'rm -rf /tmp/*' >> /etc/cron.daily/stig_tests
echo '${PROJECT_NAME}-tests --stig yes' >> /etc/cron.daily/stig_tests
chmod +x /etc/cron.daily/stig_tests
}