Sha256: bf8cc2086b303cfcea49e87055c650da8916082450f729bcc0692012cc56bdf1
Contents?: true
Size: 773 Bytes
Versions: 2
Compression:
Stored size: 773 Bytes
Contents
#!/bin/bash #------------------------------------------------------------------------------- # Install Git. echo "1. Ensuring Git" apt-get -y install git >/tmp/git.install.log 2>&1 || exit 10 # Make sure it is easy to communicate with repo hosts echo "2. Adding GitHub to root known hosts" mkdir -p "/root/.ssh" || exit 11 touch "/root/.ssh/known_hosts" || exit 12 ssh-keygen -R github.com >/dev/null 2>&1 || exit 13 # No duplicates ssh-keyscan -H github.com >> "/root/.ssh/known_hosts" 2>/dev/null || exit 14 echo "3. Adding default Git configurations" if [ -z "`git config --global user.name`" ] then git config --global user.name "CoralNexus Machine" fi if [ -z "`git config --global user.email`" ] then git config --global user.email "admin@coralnexus.com" fi
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
corl-0.5.18 | bootstrap/os/ubuntu/01_git.sh |
corl-0.5.17 | bootstrap/os/ubuntu/01_git.sh |