Skip to content

Commit 95ebfaa

Browse files
Work around permissions issues
1 parent 6bed5ec commit 95ebfaa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/codedeploy/ValidateService.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ ${DEBUG:-false} && set -vx
1414
# and http://wiki.bash-hackers.org/scripting/debuggingtips
1515
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
1616

17+
GAUNTLT_RESULTS=/app/build/gauntlt-results.html
18+
1719
check_every() {
1820
local delay=${1:-}
1921
local host="http://localhost/"
@@ -29,4 +31,7 @@ echo "Checking web server availability"
2931
check_every 2
3032

3133
echo "Scanning with openscap and gauntlt"
34+
mkdir -p /app/build
35+
cat < /dev/null > "$GAUNTLT_RESULTS"
36+
chown centos:centos "$GAUNTLT_RESULTS"
3237
sudo -u centos HOME=/home/centos /app/bin/ansible.sh scan-openscap.yml scan-gauntlt.yml

0 commit comments

Comments
 (0)