lib.sh 260 B

12345678910111213
  1. #!/bin/bash
  2. set -e
  3. function entrypoint_log() {
  4. if [ -z "${ENTRYPOINT_QUIET_LOGS:-}" ]; then
  5. echo "/docker-entrypoint.sh: $@"
  6. fi
  7. }
  8. function as_runtime_user() {
  9. su --preserve-environment ${RUNTIME_UID} --shell /bin/bash --command "${*}"
  10. }