Schedule daily STIG tests
This commit is contained in:
parent
cf74c113cb
commit
4ed6e4ff7f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue