Clear temp files daily
This commit is contained in:
parent
27ec9e01e0
commit
fffc1cfbe7
|
@ -80,6 +80,7 @@ function randomize_cron {
|
||||||
function schedule_stig_tests {
|
function schedule_stig_tests {
|
||||||
echo '#!/bin/bash' > /etc/cron.daily/stig_tests
|
echo '#!/bin/bash' > /etc/cron.daily/stig_tests
|
||||||
echo "pkill ${PROJECT_NAME}-tests" >> /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
|
echo '${PROJECT_NAME}-tests --stig yes' >> /etc/cron.daily/stig_tests
|
||||||
chmod +x /etc/cron.daily/stig_tests
|
chmod +x /etc/cron.daily/stig_tests
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue