Merge pull request #5287 from zjb0807/modify-symbol

modify native token symbol
pull/5288/head
Victor Baranov 3 years ago committed by GitHub
commit 020a99e64b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docker-compose/docker-compose.yml
  2. 6
      docker/Dockerfile

@ -19,6 +19,8 @@ services:
build:
context: ..
dockerfile: ./docker/Dockerfile
args:
COIN: ""
restart: always
container_name: 'blockscout'
links:

@ -37,7 +37,11 @@ RUN mix do deps.get, local.rebar --force, deps.compile
ADD . .
ARG COIN
RUN if [ "$COIN" != "" ]; then sed -i s/"POA"/"${COIN}"/g apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po; fi
RUN if [ "$COIN" != "" ]; then \
sed -i s/"POA"/"${COIN}"/g apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po; \
sed -i "/msgid \"Ether\"/{n;s/msgstr \"\"/msgstr \"${COIN}\"/g}" apps/block_scout_web/priv/gettext/default.pot; \
sed -i "/msgid \"Ether\"/{n;s/msgstr \"\"/msgstr \"${COIN}\"/g}" apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po; \
fi
# Run forderground build and phoenix digest
RUN mix compile

Loading…
Cancel
Save