Skip to content
Snippets Groups Projects
Commit 4ed6e4ff authored by Bob Mottram's avatar Bob Mottram
Browse files

Schedule daily STIG tests

parent cf74c113
No related branches found
No related tags found
No related merge requests found
......@@ -77,4 +77,11 @@ function randomize_cron {
mark_completed $FUNCNAME
}
function schedule_stig_tests {
echo '#!/bin/bash' > /etc/cron.daily/stig_tests
echo "pkill ${PROJECT_NAME}-tests" >> /etc/cron.daily/stig_tests
echo '${PROJECT_NAME}-tests --stig yes' >> /etc/cron.daily/stig_tests
chmod +x /etc/cron.daily/stig_tests
}
# NOTE: deliberately there is no "exit 0"
......@@ -751,6 +751,9 @@ function setup_utils {
function_check limit_user_logins
limit_user_logins
function_check schedule_stig_tests
schedule_stig_tests
}
function setup_email {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment