Skip to content

Commit 81399ef

Browse files
Fix permissions
1 parent cc83d7f commit 81399ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/codedeploy/ValidateService.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ check_every 2
3535
echo "Scanning with openscap and gauntlt"
3636
mkdir -p /app/build
3737
cat < /dev/null > "$GAUNTLT_RESULTS"
38-
chown centos:centos "$GAUNTLT_RESULTS"
38+
chown -R centos:centos "$GAUNTLT_RESULTS" /app/build /app/ansible/tmp
39+
3940
set +e
4041
sudo -u centos HOME=/home/centos /app/bin/ansible.sh scan-openscap.yml scan-gauntlt.yml
4142
RETCODE=$?
4243
cp "$GAUNTLT_RESULTS" "$GAUNTLT_RESULTS_SAVE"
4344
set -e
4445
exit "$RETCODE"
46+
rm -rf /app/ansible/tmp

0 commit comments

Comments
 (0)