This repository has been archived on 2023-11-06. You can view files and clone it, but cannot push or open issues or pull requests.
beatsaber-overlay/entrypoint.sh

27 lines
1.5 KiB
Bash
Raw Normal View History

2022-10-26 12:57:48 +00:00
#!/bin/sh
echo "Check that we have NEXT_PUBLIC_API_URL vars"
test -n "$NEXT_PUBLIC_HTTP_PROXY"
echo "Check that we have NEXT_PUBLIC_SITE_NAME vars"
test -n "$NEXT_PUBLIC_SITE_NAME"
echo "Check that we have NEXT_PUBLIC_SITE_TITLE vars"
test -n "$NEXT_PUBLIC_SITE_TITLE"
echo "Check that we have NEXT_PUBLIC_SITE_DESCRIPTION vars"
test -n "$NEXT_PUBLIC_SITE_DESCRIPTION"
echo "Check that we have NEXT_PUBLIC_SITE_COLOR vars"
test -n "$NEXT_PUBLIC_SITE_COLOR"
echo "Check that we have NEXT_PUBLIC_SITE_URL vars"
test -n "$NEXT_PUBLIC_SITE_URL"
2022-10-26 14:07:33 +00:00
echo find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0
2022-10-26 13:02:32 +00:00
find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#APP_NEXT_PUBLIC_HTTP_PROXY#$NEXT_PUBLIC_HTTP_PROXY#g"
find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#APP_NEXT_PUBLIC_SITE_NAME#$NEXT_PUBLIC_SITE_NAME#g"
find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#APP_NEXT_PUBLIC_SITE_TITLE#$NEXT_PUBLIC_SITE_TITLE#g"
find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#APP_NEXT_PUBLIC_SITE_DESCRIPTION#$NEXT_PUBLIC_SITE_DESCRIPTION#g"
2022-10-26 14:01:11 +00:00
find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#APP_NEXT_PUBLIC_SITE_COLOR#$NEXT_PUBLIC_SITE_COLOR#g"
find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i "s#APP_NEXT_PUBLIC_SITE_URL#$NEXT_NEXT_PUBLIC_SITE_URL#g"
2022-10-26 12:57:48 +00:00
echo "Starting NextJS"
exec "$@"