Skip to content

Commit

Permalink
fix the right issue
Browse files Browse the repository at this point in the history
Signed-off-by: Simon L <[email protected]>
  • Loading branch information
szaimen committed Oct 4, 2023
1 parent 25be93c commit 85dc733
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ fi

if [ "$FILTER_SET" = 1 ] && [ "$FILE_THERE" = 1 ]; then
CADDYFILE="$(sed "s|allow_countries.*|allow_countries $ALLOW_CONTRIES|;s|# import GEOFILTER| import GEOFILTER|" /Caddyfile)"
CADDYFILE="$(echo "$CADDYFILE" | sed "s|# import GEOFILTER| import GEOFILTER|")"
else
CADDYFILE="$(sed "s| import GEOFILTER|# import GEOFILTER|" /Caddyfile)"
fi
echo "$CADDYFILE" > /tmp/Caddyfile
echo "$CADDYFILE" > /Caddyfile
set +x

caddy fmt --overwrite /Caddyfile
Expand Down

0 comments on commit 85dc733

Please sign in to comment.