Skip to content

Commit

Permalink
fix another detail
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 c7b018e commit a2ce3ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ CADDY
fi

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

caddy fmt --overwrite /Caddyfile
Expand Down

0 comments on commit a2ce3ae

Please sign in to comment.