1
0

entrypoint.sh 523 B

12345678910111213141516
  1. #!/bin/sh
  2. set -e
  3. # admin-server config
  4. admin_server_config=/apollo-admin-server/config/application-github.properties
  5. cp ${admin_server_config} ${admin_server_config}.cp
  6. sed -i -E "s#DATASOURCES_URL#${DATASOURCES_URL}#g" ${admin_server_config}.cp
  7. sed -i -E "s#DATASOURCES_USERNAME#${DATASOURCES_USERNAME}#g" ${admin_server_config}.cp
  8. sed -i -E "s#DATASOURCES_PASSWORD#${DATASOURCES_PASSWORD}#g" ${admin_server_config}.cp
  9. cat ${admin_server_config}.cp > ${admin_server_config}
  10. rm -rf ${admin_server_config}.cp
  11. exec "$@"