Skip to content

Commit

Permalink
Update backward compatibility (PRIMARY_COLOR, LOGO_PATH)
Browse files Browse the repository at this point in the history
  • Loading branch information
seicke committed Nov 11, 2024
1 parent f9137b8 commit 4e2f66a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aas-web-ui/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# For backward compatibility
if [ -n "$LOGO_PATH" ]; then
jq '.logoLightPath = env.LOGO_PATH' /usr/src/app/dist/config.json > /tmp/config.json && mv /tmp/config.json /usr/src/app/dist/config.json
jq '.logoDarkPath = env.LOGO_PATH' /usr/src/app/dist/config.json > /tmp/config.json && mv /tmp/config.json /usr/src/app/dist/config.json
fi

if [ -n "$LOGO_LIGHT_PATH" ]; then
Expand Down Expand Up @@ -46,6 +47,7 @@ fi
# For backward compatibility
if [ -n "$PRIMARY_COLOR" ]; then
jq '.primaryLightColor = env.PRIMARY_COLOR' /usr/src/app/dist/config.json > /tmp/config.json && mv /tmp/config.json /usr/src/app/dist/config.json
jq '.primaryDarkColor = env.PRIMARY_COLOR' /usr/src/app/dist/config.json > /tmp/config.json && mv /tmp/config.json /usr/src/app/dist/config.json
fi

if [ -n "$PRIMARY_LIGHT_COLOR" ]; then
Expand Down

0 comments on commit 4e2f66a

Please sign in to comment.