Skip to content

Commit

Permalink
Merge pull request #4 from SIGLUS/OLMIS-6727
Browse files Browse the repository at this point in the history
OLMIS-6727: Nginx error when reload the config file occasionally
  • Loading branch information
kpalkowska authored Jun 29, 2020
2 parents 6e36654 + b58d6bb commit 64a2084
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export SEND_TIMEOUT="${SEND_TIMEOUT:-${NGINX_TIMEOUT:-60s}}"
CONSUL_PATH="${CONSUL_HOST}:${CONSUL_PORT}"
INPUT_FILE="/etc/consul-template/openlmis.conf"
OUTPUT_FILE="/etc/nginx/conf.d/default.conf"
CALLBACK="nginx -s reload"
CALLBACK="nginx -s reload || true"

rm -f $OUTPUT_FILE

consul-template \
-consul "$CONSUL_PATH" \
Expand Down

0 comments on commit 64a2084

Please sign in to comment.