wagtail-bakerydemo/docker-entrypoint.sh

14 wiersze
287 B
Bash

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