We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81399ef commit ced916bCopy full SHA for ced916b
bin/codedeploy/ValidateService.sh
@@ -33,14 +33,15 @@ echo "Checking web server availability"
33
check_every 2
34
35
echo "Scanning with openscap and gauntlt"
36
-mkdir -p /app/build
+mkdir -p /app/build /app/ansible/tmp
37
cat < /dev/null > "$GAUNTLT_RESULTS"
38
chown -R centos:centos "$GAUNTLT_RESULTS" /app/build /app/ansible/tmp
39
+chmod 755 "$GAUNTLT_RESULTS" /app/build /app/ansible/tmp
40
41
set +e
42
sudo -u centos HOME=/home/centos /app/bin/ansible.sh scan-openscap.yml scan-gauntlt.yml
43
RETCODE=$?
-cp "$GAUNTLT_RESULTS" "$GAUNTLT_RESULTS_SAVE"
44
set -e
45
+cp "$GAUNTLT_RESULTS" "$GAUNTLT_RESULTS_SAVE"
46
+rm -rf /app/ansible/tmp /app/build
47
exit "$RETCODE"
-rm -rf /app/ansible/tmp
0 commit comments