Skip to content

Commit

Permalink
Merge pull request #28 from opendatakit/cxlt/25-2
Browse files Browse the repository at this point in the history
bug #25: second attempt to deal with nginx boot problems.
  • Loading branch information
issa-tseng committed Oct 23, 2018
2 parents 4334705 + 4a18563 commit f3a0d90
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 f3a0d90

Please sign in to comment.