-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a command in the startup script to make sure the logging folder…
… exist (ref: knative/serving#3809)
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
#!/bin/bash | ||
#!/bin/bash | ||
# this is a list of all variables supported | ||
if [ "${INDEX_HTML_CONTENT}" ]; then echo $INDEX_HTML_CONTENT > /usr/share/nginx/html/index.html; fi | ||
if [ "${HTTP_PORT}" ]; then sed -i "s/listen 80/listen ${HTTP_PORT}/g" /etc/nginx/conf.d/default.conf; fi | ||
# the following is required in some rare circumstances where a volume is mounted at /var/log (ref: https://github.com/knative/serving/issues/3809) | ||
mkdir -p /var/log/nginx | ||
# this starts the nginx service | ||
nginx -g "daemon off;" | ||
|