Skip to content

Commit

Permalink
[Fixes kubernetes#373] Fixed envsubst not working on Ubuntu18.04/Cent…
Browse files Browse the repository at this point in the history
…OS8 on VirtualBox
  • Loading branch information
anvithks committed Jul 18, 2020
1 parent 981c68f commit 39f5c18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ cat /etc/nginx/conf.d/default.conf
echo "Starting application..."
echo "OPENSDS_S3_HOST = ${OPENSDS_S3_HOST}"
echo "OPENSDS_S3_PORT = ${OPENSDS_S3_PORT}"
envsubst '\${OPENSDS_S3_HOST} \${OPENSDS_S3_PORT}' < "/var/www/html/assets/data/runtime.json" > "/var/www/html/assets/data/runtime.json"
echo "{\"hostIP\": \"$OPENSDS_S3_HOST\",\"hostPort\": \"$OPENSDS_S3_PORT\"}" >/var/www/html/assets/data/runtime.json

# start nginx service
/usr/sbin/nginx -g "daemon off;"
Expand Down

0 comments on commit 39f5c18

Please sign in to comment.