Skip to content

Commit

Permalink
Fix syntax issue with environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
okeneo committed Mar 3, 2024
1 parent a75379b commit 4bac463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export proxy_add_x_forwarded_for=\$proxy_add_x_forwarded_for
export scheme=\$scheme

echo "Checking for fullchain.pem"
if [ ! -f "/etc/letsencrypt/live/{$DOMAIN}/fullchain.pem" ]; then
if [ ! -f "/etc/letsencrypt/live/$DOMAIN/fullchain.pem" ]; then
echo "No SSL certificate. Enabling HTTP only..."
envsubst < /etc/nginx/default.conf.tpl > /etc/nginx/conf.d/default.conf
else
Expand Down

0 comments on commit 4bac463

Please sign in to comment.