Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Commit

Permalink
Preserve permissions of stager_config.json so it can be read by vcap
Browse files Browse the repository at this point in the history
[#142105613]
  • Loading branch information
mdelillo committed Apr 5, 2017
1 parent c29e2bf commit bcccca2
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions assets/scripts/run
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,12 @@ if [[ -n "$registries" ]]; then
sed -i "\|/var/vcap/packages/guardian/bin/guardian|a$insecureDockerRegistryOptions \\\\" /var/vcap/jobs/garden/bin/garden_ctl
fi

temp_stager_config=$(mktemp)
jq \
stager_config=$(jq \
--arg registries "$registries" \
'.insecure_docker_registries=($registries | split(","))' \
/var/vcap/jobs/stager/config/stager_config.json \
> $temp_stager_config
mv $temp_stager_config /var/vcap/jobs/stager/config/stager_config.json
/var/vcap/jobs/stager/config/stager_config.json
)
echo "$stager_config" > /var/vcap/jobs/stager/config/stager_config.json
fi

>&3 2>&4 /var/pcfdev/start "$domain"
Expand Down

0 comments on commit bcccca2

Please sign in to comment.