Skip to content

Commit

Permalink
Optimized conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoJeronimo committed Feb 1, 2024
1 parent 6cceb44 commit 8b6d93e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/entrypoint-frontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

CONF="/etc/nginx/conf.d/default.conf"

[ ! -z "${ABRECHNUNG_API__HOST}" ] && sed -i "s/api:/${ABRECHNUNG_API__HOST}:/g" "$CONF"
[ ! -z "${ABRECHNUNG_API__PORT}" ] && sed -i "s/:8080/:${ABRECHNUNG_API__PORT}/g" "$CONF"
[ -n "${ABRECHNUNG_API__HOST}" ] && sed -i "s/api:/${ABRECHNUNG_API__HOST}:/g" "$CONF"
[ -n "${ABRECHNUNG_API__PORT}" ] && sed -i "s/:8080/:${ABRECHNUNG_API__PORT}/g" "$CONF"
[ ! -f "/proc/net/if_inet6" ] && sed -i "s/listen \[::\]/#listen \[::\]/g" "$CONF"

0 comments on commit 8b6d93e

Please sign in to comment.