entry.sh 243 B

123456789101112131415
  1. #!/bin/bash
  2. if [ -e /host/dev ]; then
  3. mount --rbind /host/dev /dev
  4. fi
  5. CA_BASE=/etc/ssl/certs/ca-certificates.crt.rancher
  6. CA=/etc/ssl/certs/ca-certificates.crt
  7. if [[ -e ${CA_BASE} && ! -e ${CA} ]]; then
  8. cp $CA_BASE $CA
  9. fi
  10. exec "$@"