Skip to content

Commit

Permalink
bug #25: second attempt to deal with nginx boot problems.
Browse files Browse the repository at this point in the history
* this time we just start nginx directly if the SSL type is anything
  other than letsencrypt.
  • Loading branch information
issa-tseng committed Oct 17, 2018
1 parent 4334705 commit 4a18563
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion files/nginx/odk-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,10 @@ fi
echo "writing a new nginx configuration file.."
/bin/bash -c "envsubst '\$SSL_TYPE \$DOMAIN' < /usr/share/nginx/odk.conf.template > /etc/nginx/conf.d/odk.conf"

/bin/bash /scripts/entrypoint.sh
if [ "$SSL_TYPE" = "letsencrypt" ]
then
/bin/bash /scripts/entrypoint.sh
else
nginx -g "daemon off;"
fi

0 comments on commit 4a18563

Please sign in to comment.