Skip to content

Commit ced916b

Browse files
Hail mary commit
1 parent 81399ef commit ced916b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/codedeploy/ValidateService.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ echo "Checking web server availability"
3333
check_every 2
3434

3535
echo "Scanning with openscap and gauntlt"
36-
mkdir -p /app/build
36+
mkdir -p /app/build /app/ansible/tmp
3737
cat < /dev/null > "$GAUNTLT_RESULTS"
3838
chown -R centos:centos "$GAUNTLT_RESULTS" /app/build /app/ansible/tmp
39+
chmod 755 "$GAUNTLT_RESULTS" /app/build /app/ansible/tmp
3940

4041
set +e
4142
sudo -u centos HOME=/home/centos /app/bin/ansible.sh scan-openscap.yml scan-gauntlt.yml
4243
RETCODE=$?
43-
cp "$GAUNTLT_RESULTS" "$GAUNTLT_RESULTS_SAVE"
4444
set -e
45+
cp "$GAUNTLT_RESULTS" "$GAUNTLT_RESULTS_SAVE"
46+
rm -rf /app/ansible/tmp /app/build
4547
exit "$RETCODE"
46-
rm -rf /app/ansible/tmp

0 commit comments

Comments
 (0)