entrypoint.sh 518 B

123456789101112131415161718
  1. #!/bin/bash
  2. echo "$SSHKEY" > /tmp/keyfile
  3. chmod 0400 /tmp/keyfile
  4. GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url}
  5. if [ $? == '0' ]
  6. then
  7. echo "git clone the ${git_url} done"
  8. echo "All tasks complete!!!"
  9. echo "Attention! Before generate or renew certificates manual"
  10. echo "Please read https://git.sdsys.ru/sdsys/pki/src/master/iru/wildcard/acme-dns/README.md"
  11. else
  12. echo "Cannot git clone the ${git_url}"; exit 1
  13. fi
  14. exec "$@"