-
-
Save mikezter/669003 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export VPS=YOUR.IP.ADDRESS.HERE | |
function initialize { | |
rm .ssh/known_hosts | |
server=${1:=${VPS}} | |
role=$2 | |
: ${role:=rails} | |
ssh-copy-id -i ~/.ssh/id_rsa root@$server | |
ssh root@$1 "wget http://github.com/sid137/chef-repo/raw/master/install.sh -O install.sh && /bin/bash -x install.sh ${role}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment