wagtail-bakerydemo/docker-entrypoint.sh

14 wiersze
287 B
Bash

2020-07-20 21:07:02 +00:00
#!/bin/sh -e
2020-07-20 21:07:02 +00:00
# Copy SSH private key to file, if set
# This is used for talking to GitHub over an SSH connection
echo $SSH_PRIVATE_KEY | base64 --decode > $HOME/.ssh/id_rsa
2020-07-20 21:07:02 +00:00
cat << EOF > $HOME/.ssh/config
Host *
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
EOF
exec "$@"