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

Automatically fix stig tests

parent 4bda949e
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,7 @@ function schedule_stig_tests {
echo "${PROJECT_NAME}-tests --stig yes > /tmp/daily-stig-tests";
echo 'if [ ! "$?" = "0" ]; then';
echo " /bin/bash /usr/local/bin/${PROJECT_NAME}-notification -m \"\$(cat /tmp/daily-stig-tests)\" -s \"${PROJECT_NAME} STIG test failures\"";
echo " ${PROJECT_NAME}-tests --stig fix"
echo 'fi';
echo 'if [ -f /tmp/daily-stig-tests ]; then';
echo ' rm /tmp/daily-stig-tests';
......
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