entrypoint.sh 534 B

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