docker-init.sh 328 B

1234567891011
  1. #!/bin/sh
  2. if ! [[ -z "${BASE_API}" ]]; then
  3. sed -i -e "s@https://apple.linkerplus.com/api@$BASE_API@g" /usr/share/nginx/html/static/js/app*.js
  4. fi
  5. if ! [[ -z "${LOGIN_API}" ]]; then
  6. sed -i -e "s@https://linker-im.linkerplus.com/user/login@$LOGIN_API@g" /usr/share/nginx/html/static/js/app*.js
  7. fi
  8. nginx -g "daemon off;"