|
@ -59,6 +59,30 @@ PGHOST=\$(docker-ip | grep postgres | xargs echo | cut -f 3 -d " ") || { |
|
|
export PGHOST PGUSER |
|
|
export PGHOST PGUSER |
|
|
EOF |
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
if ! [ -s /etc/ssh/vm_git_myceliandre_access_id_rsa ]; then |
|
|
|
|
|
curl https://docker.0k.io/get/vm_git_myceliandre_access_id_rsa > /etc/ssh/vm_git_myceliandre_access_id_rsa || { |
|
|
|
|
|
echo "Fatal: Could not retrieve http://docker.0k.io/get/vm_git_myceliandre_access_id_rsa ..." >&2 |
|
|
|
|
|
rm -f /etc/ssh/vm_git_myceliandre_access_id_rsa |
|
|
|
|
|
exit 1 |
|
|
|
|
|
} |
|
|
|
|
|
## Not so usefull as it is public ! |
|
|
|
|
|
chmod 0600 /etc/ssh/vm_git_myceliandre_access_id_rsa |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
mkdir -p /root/.ssh |
|
|
|
|
|
|
|
|
|
|
|
cat <<EOF >> /root/.ssh/config |
|
|
|
|
|
|
|
|
|
|
|
Host git.myceliandre.fr |
|
|
|
|
|
User git |
|
|
|
|
|
IdentityFile /etc/ssh/vm_git_myceliandre_access_id_rsa |
|
|
|
|
|
UserKnownHostsFile /dev/null |
|
|
|
|
|
StrictHostKeyChecking no |
|
|
|
|
|
Port 5022 |
|
|
|
|
|
|
|
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## |
|
|
## |
|
|
## We could need some docker-compose for some quick hacks |
|
|
## We could need some docker-compose for some quick hacks |
|
|
## |
|
|
## |
|
|